protected int checkAndSetSecurityPart() {
    if ((flags | MESSAGE_HAS_SECURE_PART) == flags) {
      securePart = new Part();
      return 1;
    } else {
      securePart = null;
      return 0;
    }
  }
TODO: refactor overly long method readPayloadFields
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Message.java