code: public static UUID uuid(ByteBuffer bb) {
          bb = bb.slice();
          return new UUID(bb.getLong(), bb.getLong());
      }
docs: Converts a ByteBuffer containing a UUID into a java.util.UUID
  
  @param bb
  a ByteBuffer containing a UUID
  @return a java.util.UUID