code: @Override
      public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
          for (AttributeAccess attr : attributes.values()) {
              resourceRegistration.registerReadOnlyAttribute(attr.getAttributeDefinition(), null);
          }
      }
docs: Register operations associated with this resource.
  
  @param resourceRegistration a {@link org.jboss.as.controller.registry.ManagementResourceRegistration} created from this definition