public void registerOperations(ManagementResourceRegistration registry) {
if (registerRuntimeOnly) {
ClusterConnectionControlHandler.INSTANCE.registerOperations(registry, getResourceDescriptionResolver());
final EnumSet<OperationEntry.Flag> flags = EnumSet.of(OperationEntry.Flag.READ_ONLY, OperationEntry.Flag.RUNTIME_ONLY);
SimpleOperationDefinition getNodesDef = new SimpleOperationDefinitionBuilder(ClusterConnectionDefinition.GET_NODES, getResourceDescriptionResolver())
.withFlags(flags)
.setReplyType(OBJECT)
.setReplyValueType(STRING)
.build();
registry.registerOperationHandler(getNodesDef, ClusterConnectionControlHandler.INSTANCE);
SimpleOperationDefinition getStaticConnectorsAsJson = new SimpleOperationDefinitionBuilder(ClusterConnectionDefinition.GET_STATIC_CONNECTORS_AS_JSON, getResourceDescriptionResolver())
.withFlags(flags)
.setReplyType(STRING)
.build();
registry.registerOperationHandler(getStaticConnectorsAsJson, ClusterConnectionControlHandler.INSTANCE);