ascending = criteria.isAscending();
}
StringBuilder queryString = new StringBuilder();
IdentityObjectType identityType = identity.getIdentityType();
Object identType = modelProperties.containsKey(PROPERTY_IDENTITY_TYPE_NAME) ? lookupIdentityType(
identityType.getName(), getEntityManager(invocationCxt)) : identityType.getName();
final String identEntityAnnotationValue = identityClass.getAnnotation(Entity.class).name();
final String identEntityName = ("".equals(identEntityAnnotationValue) ? identityClass.getSimpleName() : identEntityAnnotationValue);
Object ident = getEntityManager(invocationCxt).createQuery(