code: @Override
      public String[] getresources() {
          ArrayList<String> resources = new ArrayList<String>();
          List<ResourceType> allResourceTypes = Arrays.asList(J2EEManagementObjectNameFactory.ResourceType.values());
  
          // Add all J2EEResources MBeans
          for (ResourceType resourceType : allResourceTypes) {
              resources.addAll(MBeanServerHelper.queryObjectName(
                              createPropertyPatternObjectName(resourceType.name())));
          }
  
          return resources.toArray(new String[resources.size()]);
      }
docs: {@inheritDoc}