/**
   * Create the Master Channel for this GridTalk.
   *
   * @parma topic The topic for the JmsCommInfo.
   * @param user the User for the JmsCommInfo.
   * @param password The Password for the JmsCommInfo.
   * @param encryptCert The UID of the Certificate to use for encryption.
   */
  private void updateMasterChannel(String topic, String user, String password, Long encryptCert)
      throws Throwable {
    // NSL20051116 Ensure update is on up-to-date copy
    CommInfo _myCommInfo =
        DelegateHelper.retrieveCommInfo(
            _myChannel.getTptCommInfo().getRefId(), _myChannel.getTptCommInfo().getName());
    //  update comminfo with refId, topic, routerIp
    // JMSCommInfo jmsInfo = new JMSCommInfo(_myCommInfo.getURL());
    JMSCommInfo jmsInfo = new JMSCommInfo();
    jmsInfo.setURL(_myCommInfo.getURL());
    jmsInfo.setDestination(topic);
    jmsInfo.setUserName(user);
    jmsInfo.setPassword(password);
    _myCommInfo.setURL(jmsInfo.toURL());
    DelegateHelper.updateCommInfo(_myCommInfo);

    // NSL20051116 Ensure update is on up-to-date copy
    SecurityInfo _mySecInfo =
        DelegateHelper.retrieveSecurityInfo(
            _myChannel.getSecurityProfile().getReferenceId(),
            _myChannel.getSecurityProfile().getName());
    // update securityinfo with new encryptCert
    _mySecInfo.setEncryptionCertificateID(encryptCert);
    DelegateHelper.updateSecurityInfo(_mySecInfo);
  }
 private void updateSendChannelSignCert(Long signCert) throws Throwable {
   /*
   ChannelInfo sendChannel = _ctx.getSendChannel();
   sendChannel.getSecurityProfile().setSignatureEncryptionCertificateID(signCert);
   DelegateHelper.updateSecurityInfo(sendChannel.getSecurityProfile());
   */
   // NSL20051116 Ensure update on up-to-date securityInfo
   SecurityInfo secInfo = _ctx.getSendChannel().getSecurityProfile();
   secInfo = DelegateHelper.retrieveSecurityInfo(secInfo.getReferenceId(), secInfo.getName());
   secInfo.setSignatureEncryptionCertificateID(signCert);
   DelegateHelper.updateSecurityInfo(secInfo);
 }