code: protected String getAttributeValue(MBeanServerExecutor pMBeanServerExecutor,String pMBean,String pAttribute) {
          try {
              ObjectName oName = new ObjectName(pMBean);
              return getAttributeValue(pMBeanServerExecutor,oName,pAttribute);
          } catch (MalformedObjectNameException e) {
              return null;
          }
      }
docs: Get the string representation of an attribute
  
  @param pMBeanServerExecutor set of MBeanServers to query. The first one wins.
  @param pMBean object name of MBean to lookup
  @param pAttribute attribute to lookup
  @return string value of attribute or <code>null</code> if the attribute could not be fetched