EntityStore entityStore = model.module().entityStore();
// Generate id if necessary
if( identity == null )
{
IdentityGenerator idGen = model.module().identityGenerator();
if( idGen == null )
{
throw new NoSuchServiceException( IdentityGenerator.class.getName(), model.module().name() );
}
identity = idGen.generate( first( model.model().types() ) );
}
EntityBuilder<T> builder;
builder = new EntityBuilderInstance<>( model,
this,