code: public OtpErlangObject receiveRPC() throws IOException, OtpErlangExit,
              OtpAuthException {
  
          final OtpErlangObject msg = receive();
  
          if (msg instanceof OtpErlangTuple) {
              final OtpErlangTuple t = (OtpErlangTuple) msg;
              if (t.arity() == 2) {
                  return t.elementAt(1); // obs: second element
              }
          }
  
          return null;
      }
docs: Receive an RPC reply from the remote Erlang node. This convenience
  function receives a message from the remote node, and expects it to have
  the following format:
  
  <pre>
  { rex, Term }
  </pre>
  
  @return the second element of the tuple if the received message is a
  two-tuple, otherwise null. No further error checking is
  performed.
  
  @exception java.io.IOException
  if the connection is not active or a communication error
  occurs.
  
  @exception OtpErlangExit
  if an exit signal is received from a process on the peer
  node.
  
  @exception OtpAuthException
  if the remote node sends a message containing an invalid
  cookie.