@Override
  public AttributeList getAttributes(String[] attributes) {
    if (attributes == null) {
      throw new RuntimeOperationsException(new IllegalArgumentException(
          "Attribute names cannot be null."));
    }

    Logger logger = getLogger();

    AttributeList list = new AttributeList();
    for (String attrName : attributes) {
      Attribute attribute = null;
      try {
        Object value = getAttribute(attrName);
        attribute = new Attribute(attrName, value);
        list.add(attribute);
      } catch (Exception x) {
        if (logger.isEnabledFor(Logger.TRACE)) {
          logger.trace("getAttribute for attribute " + attrName + " failed", x);
        }
        // And go on with the next attribute
      }
    }
    return list;
  }
@author <a href="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
@version $Revision: 1.14 $
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java