static int readDominoNumber(final DataInput dis, final boolean sharedResource)
      throws IOException {
    final int dominoNumber = dis.readInt();
    if (sharedResource) {
      return 0;
    }
    return dominoNumber;
  }
Returns true if handshake was read successfully, false otherwise.
geode-core/src/main/java/org/apache/geode/internal/tcp/Connection.java