public static QueryContext createQueryContext(final Entity entity, final Map<String, Object> options) {
Assert.notNull(entity, "entity");
try {
Class<?> clazz = entity.getClass();
BeanDescriptor beanDescriptor = new BeanDescriptorBuilder(clazz).getBeanDescriptor();
String entityName = QueryContextHelper.getEntityName(beanDescriptor);
QueryContext context = new QueryContext(entityName, entityName, QueryContextHelper.ROOT_ALIAS, null);
Queue<Entity> parsed = new LinkedList<Entity>();
parsed.add(entity);