code: public TCUniRequest createUni(Dialog d) {
          if (d == null) {
              throw new NullPointerException("Dialog is null");
          }
          TCUniRequestImpl tcur = new TCUniRequestImpl();
          tcur.setDialog(d);
          tcur.setDestinationAddress(d.getRemoteAddress());
          tcur.setOriginatingAddress(d.getLocalAddress());
          return tcur;
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.tcap.api.tc.dialog.DialogPrimitiveFactory
  #createUni(org.restcomm.protocols.ss7.tcap.api.tc.dialog.Dialog)