public <T> T get( T entity )
throws EntityTypeNotFoundException
{
EntityComposite entityComposite = (EntityComposite) entity;
EntityInstance compositeInstance = EntityInstance.getEntityInstance( entityComposite );
ModelModule<EntityModel> model = new ModelModule<EntityModel>( compositeInstance.module(), compositeInstance.entityModel() );
Class<T> type = (Class<T>) compositeInstance.type();
return uow.get( compositeInstance.identity(), this, Collections.singletonList( model), type );
}
public void remove( Object entity )