public static void startup() {
    final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry();
    WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
    String bindAddress = wscEnvironmentBean.getBindAddress11();
    int bindPort = wscEnvironmentBean.getBindPort11();
    int secureBindPort = wscEnvironmentBean.getBindPortSecure11();
    WSTEnvironmentBean wstEnvironmentBean = XTSPropertyManager.getWSTEnvironmentBean();
    String participantServiceURLPath = wstEnvironmentBean.getParticipantServiceURLPath();
    if (participantServiceURLPath == null) {
      participantServiceURLPath = "/ws-t11-participant";
    }

    if (bindAddress == null) {
      bindAddress = "localhost";
    }

    if (bindPort == 0) {
      bindPort = 8080;
    }

    if (secureBindPort == 0) {
      secureBindPort = 8443;
    }

    final String baseUri = "http://" + bindAddress + ":" + bindPort + participantServiceURLPath;
    final String uri =
        baseUri + "/" + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;
    final String secureBaseUri =
        "https://" + bindAddress + ":" + secureBindPort + participantServiceURLPath;
    final String secureUri =
        secureBaseUri
            + "/"
            + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;

    serviceRegistry.registerServiceProvider(
        BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, uri);
    serviceRegistry.registerSecureServiceProvider(
        BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri);
  }