code: public static <T extends Enum<T>> EnumPath<T> enumPath(Class<? extends T> type, String variable) {
          return new EnumPath<T>(type, PathMetadataFactory.forVariable(variable));
      }
docs: Create a new Path expression
  
  @param type type of expression
  @param variable variable name
  @return path expression