docs: static void cleanup(final Resource resource) {
          synchronized (resource) {
              for (final Resource.ResourceEntry entry : resource.getChildren(SUBSYSTEM)) {
                  resource.removeChild(entry.getPathElement());
              }
              for (final Resource.ResourceEntry entry : resource.getChildren(SUBDEPLOYMENT)) {
                  resource.removeChild(entry.getPathElement());
              }
          }
      }