code: protected String getVersionFromJsr77(MBeanServerExecutor pMbeanServers) {
          Set<ObjectName> names = searchMBeans(pMbeanServers, "*:j2eeType=J2EEServer,*");
          // Take the first one
          if (names.size() > 0) {
              return getAttributeValue(pMbeanServers, names.iterator().next(), "serverVersion");
          }
          return null;
      }
docs: Get the version number from a JSR-77 compliant server
  
  
  @param pMbeanServers servers to query
  @return version number or null if not found.