code: protected String getQuery()
      {
          final StringBuilder ret = new StringBuilder();
          try {
              final String clazzname;
              if (EFapsSystemConfiguration.get().containsAttributeValue("org.efaps.kernel.index.QueryBuilder")) {
                  clazzname = EFapsSystemConfiguration.get().getAttributeValue("org.efaps.kernel.index.QueryBuilder");
              } else {
                  clazzname = "org.efaps.esjp.admin.index.LucenceQueryBuilder";
              }
              final Class<?> clazz = Class.forName(clazzname, false, EFapsClassLoader.getInstance());
              final Object obj = clazz.newInstance();
              final Method method = clazz.getMethod("getQuery4DimValues", String.class, List.class, List.class);
              final Object newQuery = method.invoke(obj, getCurrentQuery(), getIncluded(), getExcluded());
              ret.append(newQuery);
          } catch (final EFapsException | ClassNotFoundException | InstantiationException | IllegalAccessException
                          | NoSuchMethodException | SecurityException | IllegalArgumentException
                          | InvocationTargetException e) {
              IndexSearch.LOG.error("Catched", e);
              ret.append(getCurrentQuery());
          }
          return ret.toString();
      }
docs: Gets the query.
  
  @return the query