public void setNumberOfParts(int numberOfParts) {
    // hitesh: need to add security header here from server
    // need to insure it is not chunked message
    // should we look message type to avoid internal message like ping
    messageModified = true;
    currentPart = 0;
    this.numberOfParts = numberOfParts;
    if (numberOfParts > partsList.length) {
      Part[] newPartsList = new Part[numberOfParts];
      for (int i = 0; i < numberOfParts; i++) {
        if (i < partsList.length) {
          newPartsList[i] = partsList[i];
        } else {
          newPartsList[i] = new Part();
        }
      }
      partsList = newPartsList;
    }
  }
Sets and builds the {@link Part}s that are sent in the payload of the Message
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Message.java