code: public AttributeList getAttributes(String[] attributes /* cannot be null */) {
          final AttributeList ret = new AttributeList(attributes.length);
          for (String attrName : attributes) {
              try {
                  final Object attrValue = getAttribute(attrName);
                  ret.add(new Attribute(attrName, attrValue));
              } catch (Exception e) {
                  // Ignore this attribute. As specified in the JMX Spec
              }
          }
          return ret;
      }
docs: {@inheritDoc}