code: private List<String> filterAttributeNames(MBeanServerExecutor pSeverManager,ObjectName pName, List<String> pNames)
              throws IOException, ReflectionException, MBeanException, AttributeNotFoundException, InstanceNotFoundException {
          Set<String> attrs = new HashSet<String>(getAllAttributesNames(pSeverManager,pName));
          List<String> ret = new ArrayList<String>();
          for (String name : pNames) {
              if (attrs.contains(name)) {
                  ret.add(name);
              }
          }
          return ret;
      }
docs: Return only those attributes of an mbean which has one of the given names