@Override
  public void initialize(ExtensionContext context) {
    bootstrap();
    log.info("Initializing HA-Singleton Subsystem");
    final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0);
    final ManagementResourceRegistration subsystem =
        registration.registerSubsystemModel(HASingletonSubsystemProviders.SUBSYSTEM);

    subsystem.registerOperationHandler(
        ADD,
        HASingletonSubsystemAdd.ADD_INSTANCE,
        HASingletonSubsystemProviders.SUBSYSTEM_ADD,
        false);

    subsystem.registerOperationHandler(
        DESCRIBE,
        GenericSubsystemDescribeHandler.INSTANCE,
        GenericSubsystemDescribeHandler.INSTANCE,
        false,
        OperationEntry.EntryType.PRIVATE);

    registration.registerXMLElementWriter(HASingletonSubsystemParser.getInstance());
  }
 @Override
 public void initializeParsers(ExtensionParsingContext context) {
   context.setSubsystemXmlMapping(
       SUBSYSTEM_NAME, Namespace.CURRENT.getUriString(), HASingletonSubsystemParser.getInstance());
 }