code: private boolean isOwnPublicAddress(InetAddress address) {
          if (!proxyParam.isBehindNat()) {
              return false;
          }
  
          // Support just AWS for now.
          TransportAddress publicAddress = getAwsCandidateHarvester().getMask();
          if (publicAddress == null) {
              return false;
          }
          return Arrays.equals(address.getAddress(), publicAddress.getAddress().getAddress());
      }
docs: Tells whether or not the given {@code address} is a public address of the host, when behind NAT.
  <p>
  Returns {@code false} if the proxy is not behind NAT.
  <p>
  <strong>Implementation Note:</strong> Only AWS EC2 NAT detection is supported, by requesting the public IP address from
  <a href= "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#working-with-ip-addresses">
  AWS EC2 instance's metadata</a>.
  
  @param address the address that will be checked
  @return {@code true} if the address is public address of the host, {@code false} otherwise.
  @see ProxyParam#isBehindNat()