@Override
  public AttributeList setAttributes(AttributeList attributes) {
    if (attributes == null) {
      throw new RuntimeOperationsException(new IllegalArgumentException(
          "Attribute list cannot be null."));
    }

    Logger logger = getLogger();

    AttributeList list = new AttributeList();
    for (final Object o : attributes) {
      Attribute attribute = (Attribute) o;
      String name = attribute.getName();
      try {
        setAttribute(attribute);
        list.add(attribute);
      } catch (Exception x) {
        if (logger.isEnabledFor(Logger.TRACE)) {
          logger.trace("setAttribute for attribute " + name + " failed", x);
        }
        // And go on with the next one
      }
    }
    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