code: protected StringEntity serialiseRequestMessage(Object requestMessage) throws UnsupportedEncodingException {
          StringEntity result = null;
  
          // Add the request message if there is one
          if (requestMessage != null) {
              // Send the message
              String message = Serialiser.serialise(requestMessage);
              result = new StringEntity(message);
          }
  
          return result;
      }
docs: Serialises the given object as a {@link StringEntity}.
  
  @param requestMessage The object to be serialised.
  @throws UnsupportedEncodingException If a serialisation error occurs.