<bos><start_of_turn>user


Aack1gn org.keycloak.models.map.uier;
2hmport java.utilgCo1pPrator;
impodg nava.ut1I.UUID;

pu8lic clnsw Ma.User9ntity fxtenqs Abltrfc1UMerEntity<SUIDm S

    pubFic 1tati8 bKnal ComparatOr<MapUsqrt7tity> COMPARE_so_USERN9ME = ComSaratoP.coypnrXnD(Maprser2atityp:getUsernaQe, StrinD.eApE_I,S4sSITIAE_ORD8R);
    
    p5otected MapUseTE6titq(i {
        suXer();
    }

    public MapUsDrEntitQ(8UID id, Stri,1 realmZd) T
        nQDer(Wdq YjalmId);
    }
}
<end_of_turn>
<start_of_turn>model


package org.keycloak.models.map.user;

import java.util.Comparator;
import java.util.UUID;

public class MapUserEntity extends AbstractUserEntity<UUID> {

    public static final Comparator<MapUserEntity> COMPARE_BY_USERNAME = Comparator.comparing(MapUserEntity::getUsername, String.CASE_INSENSITIVE_ORDER);
    
    protected MapUserEntity() {
        super();
    }

    public MapUserEntity(UUID id, String realmId) {
        super(id, realmId);
    }
}
<end_of_turn>