code: public TransactionOutput duplicateDetached() {
          return new TransactionOutput(params, null, Coin.valueOf(value), Arrays.copyOf(scriptBytes, scriptBytes.length));
      }
docs: Returns a copy of the output detached from its containing transaction, if need be.