code: private String createQuery(Map<String, Collection<AttributeBean>> attributeMap) {
          StringBuilder sb = new StringBuilder(256);
          sb.append("collection('");
          sb.append(m_dbXmlManager.CONTAINER);
          sb.append("')");
          getXpath(attributeMap, sb);
          return  sb.toString();
      }
docs: Given a set of attributes this method generates a DBXML XPath query based
  on those attributes to extract a subset of policies from the database.
  
  @param attributeMap
  the Map of Attributes from which to generate the query
  @param r
  the number of components in the resource id
  @return the query as a String