static Object attachment(final Object object) {
    if (object instanceof sun.nio.ch.DirectBuffer) {
      return ((sun.nio.ch.DirectBuffer) object).attachment();
    }

    return null;
  }
@see sun.nio.ch.DirectBuffer#attachment()
@param object to get attachment for
@return returns attachment if object is {@link sun.nio.ch.DirectBuffer} otherwise null.
geode-unsafe/src/main/java/org/apache/geode/unsafe/internal/sun/nio/ch/DirectBuffer.java