code: public static <T> T toUnpooled(T o) {
          if (o instanceof ByteBufHolder) {
              o = copyAndRelease((ByteBufHolder) o);
          } else if (o instanceof ByteBuf) {
              o = copyAndRelease((ByteBuf) o);
          }
          return o;
      }
docs: Converts the given object to an unpooled copy and releases the given object.