@Override
    public AttributeList getAttributes(String[] attributes) {
        updateJmxCache();
        synchronized (this) {
            AttributeList ret = new AttributeList();
            for (String key : attributes) {
                Attribute attr = attrCache.get(key);
                if (LOG.isDebugEnabled()) {
                    LOG.debug(key + ": " + attr.getName() + "=" + attr.getValue());
                }
                ret.add(attr);
            }
            return ret;
        }
    }