code: protected AttributeQuery getAttributeQuery()
          throws EFapsException
      {
          AttributeQuery ret = this.getAttributeQuery(getSelectAttributeName());
          // check if in the linkto chain is one before this one
          if (!this.attrQueryBldrs.isEmpty()) {
              final QueryBuilder queryBldr = this.attrQueryBldrs.values().iterator().next();
              queryBldr.addWhereAttrInQuery(queryBldr.getLinkAttributeName(), ret);
              ret = queryBldr.getAttributeQuery();
          }
          return ret;
      }
docs: Method to get an Attribute Query in case of a Select where criteria.
  
  @return Attribute Query
  @throws EFapsException on error