@SuppressWarnings( {"raw", "unchecked"} )
public <T> Query<T> newQuery( QueryBuilder<T> queryBuilder )
{
QueryBuilderSPI queryBuilderSPI = (QueryBuilderSPI) queryBuilder;
return queryBuilderSPI.newQuery( new UoWQuerySource( this ) );
}
@Override
public <T> T newEntity( Class<T> type )
throws EntityTypeNotFoundException, LifecycleException