code: public static LifecycleChaincodeEndorsementPolicy fromStream(InputStream inputStream) throws IOException {
          return new LifecycleChaincodeEndorsementPolicy(ByteString.copyFrom(IOUtils.toByteArray(inputStream)));
      }
docs: Construct a chaincode endorsement policy from a stream.
  
  @param inputStream
  @throws IOException