public IdentifierSource getIdentifierSource() {
IdType idType = getEntityClass().getIdType();
switch ( idType ) {
case SIMPLE: {
BasicAttribute attribute = getEntityClass().getIdAttributes().iterator().next();
return new SimpleIdentifierSourceImpl( attribute, getEntityClass().getAttributeOverrideMap() );
}
case COMPOSED: {
throw new NotYetImplementedException( "Composed ids must still be implemented." );
}
case EMBEDDED: {