code: @Override
      public void registerCapabilities(ManagementResourceRegistration resourceRegistration) {
          if (capabilities!=null) {
              for (RuntimeCapability c : capabilities) {
                  resourceRegistration.registerCapability(c);
              }
          }
          if (incorporatingCapabilities != null) {
              resourceRegistration.registerIncorporatingCapabilities(incorporatingCapabilities);
          }
          assert requirements != null;
          resourceRegistration.registerRequirements(requirements);
      }
docs: Register capabilities associated with this resource.
  
  <p>Classes that overrides this method <em>MUST</em> call {@code super.registerCapabilities(resourceRegistration)}.</p>
  
  @param resourceRegistration a {@link ManagementResourceRegistration} created from this definition