code: public void addAttributeSetSelectPart(final String _attributeSet,
                                            final String _where)
          throws EFapsException
      {
          final Type type;
          // if a previous select exists it is based on the previous select,
          // else it is based on the basic table
          if (this.selectParts.size() > 0) {
              type = this.selectParts.get(this.selectParts.size() - 1).getType();
          } else {
              type = this.query.getMainType();
          }
  
          try {
              final AttributeSet set = AttributeSet.find(type.getName(), _attributeSet);
              final String linkFrom = set.getName() + "#" + set.getAttributeName();
              this.fromSelect = new LinkFromSelect(linkFrom, getQuery().isCacheEnabled() ? getQuery().getKey() : null);
              this.fromSelect.addWhere(_where);
          } catch (final CacheReloadException e) {
              OneSelect.LOG.error("Could not find AttributeSet for Type: {}, attribute: {}", type.getName(),
                              _attributeSet);
          }
      }
docs: Adds the attribute set select part.
  
  @param _attributeSet the attribute set
  @param _where the where
  @throws EFapsException on error