code: public void marshall(Session session, ProtocolMarshaller protocolMarshaller) {
  
          if (session == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(session.getSessionId(), SESSIONID_BINDING);
              protocolMarshaller.marshall(session.getTarget(), TARGET_BINDING);
              protocolMarshaller.marshall(session.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(session.getStartDate(), STARTDATE_BINDING);
              protocolMarshaller.marshall(session.getEndDate(), ENDDATE_BINDING);
              protocolMarshaller.marshall(session.getDocumentName(), DOCUMENTNAME_BINDING);
              protocolMarshaller.marshall(session.getOwner(), OWNER_BINDING);
              protocolMarshaller.marshall(session.getDetails(), DETAILS_BINDING);
              protocolMarshaller.marshall(session.getOutputUrl(), OUTPUTURL_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.