code: @Override
      public int getLocalPort() {
          int port = 0;
  
          if (udpNetworkLayer != null) {
              port = udpNetworkLayer.getDatagramSocket().getLocalPort();
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  if (port == 0) {
                      Tr.debug(tc, "getLocalPort == 0");
                  }
              }
          } else {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "getLocalPort; udpNetworkLayer == null");
              }
          }
          return port;
      }
docs: /*
  @see com.ibm.wsspi.udpchannel.UDPContext#getLocalPort()