code: @Override
      public String[] getdeployedObjects() {
          ArrayList<String> deployedObjects = new ArrayList<String>();
  
          // Add all J2EEApplications MBeans
          deployedObjects.addAll(MBeanServerHelper.queryObjectName(
                          createPropertyPatternObjectName(J2EEManagementObjectNameFactory.TYPE_APPLICATION)));
  
          // Add all J2EEModules (including EJBModule, WebModule, AppClientModule and ResourceAdapterModule) MBeans
          List<ModuleType> allModuleTypes = Arrays.asList(J2EEManagementObjectNameFactory.ModuleType.values());
          for (ModuleType moduleType : allModuleTypes) {
              deployedObjects.addAll(MBeanServerHelper.queryObjectName(
                              createPropertyPatternObjectName(moduleType.name())));
          }
  
          return deployedObjects.toArray(new String[deployedObjects.size()]);
      }
docs: {@inheritDoc}