code: public static QVarXQueryGenerator getDefaultGenerator() {
          return (QVarXQueryGenerator) new QVarXQueryGenerator()
                  .addHeader(XQueryGenerator.DEFAULT_NAMESPACE)
                  .addHeader(XQUERY_NAMESPACE_ELEMENT)
                  .addHeader(FN_PATH_FROM_ROOT)
                  .addHeader("<result> {")
                  .setPathToRoot(".")
                  .setReturnFormat(XQUERY_FOOTER)
                  .addFooter("}\n</result>");
      }
docs: Create a {@see QVarXQueryGenerator} with a default configuration.
  
  @return returns {@see QVarXQueryGenerator}