code: private ContentType getContentType() {
          String contentTypeValue = m_request.getContentType();
          if (contentTypeValue == null) {
              return ContentType.TEXT_XML;
          }
          return new ContentType(contentTypeValue);
      }
docs: Get the request's content-type, using XML as the default.