code: public InstanceQuery getQuery()
      {
          if (this.query == null) {
              try {
                  this.query = new InstanceQuery(this.typeUUID)
                                  .setIncludeChildTypes(isIncludeChildTypes())
                                  .setCompanyDependent(isCompanyDependent());
                  prepareQuery();
              } catch (final EFapsException e) {
                  QueryBuilder.LOG.error("Could not open InstanceQuery for uuid: {}", this.typeUUID);
              }
          }
          return (InstanceQuery) this.query;
      }
docs: Get the constructed query.
  @return the query