public byte[] getChannelConfigurationBytes() throws TransactionException {
        try {
            final Block configBlock = getConfigBlock(getShuffledPeers());

            Envelope envelopeRet = Envelope.parseFrom(configBlock.getData().getData(0));

            Payload payload = Payload.parseFrom(envelopeRet.getPayload());

            ConfigEnvelope configEnvelope = ConfigEnvelope.parseFrom(payload.getData());
            return configEnvelope.getConfig().toByteArray();

        } catch (Exception e) {
            throw new TransactionException(e);
        }

    }
public byte [ ] getChannelConfigurationBytes ( ) throws TransactionException { try { final Block configBlock = getConfigBlock ( getShuffledPeers ( ) ) ; Envelope envelopeRet = Envelope . parseFrom ( configBlock . getData ( ) . getData ( 0 ) ) ; Payload payload = Payload . parseFrom ( envelopeRet . getPayload ( ) ) ; ConfigEnvelope configEnvelope = ConfigEnvelope . parseFrom ( payload . getData ( ) ) ; return configEnvelope . getConfig ( ) . toByteArray ( ) ; } catch ( Exception e ) { throw new TransactionException ( e ) ; } }
Channel Configuration bytes. Bytes that can be used with configtxlator tool to upgrade the channel.
Convert to Json for editing  with:
{@code
<p>
curl -v   POST --data-binary @fooConfig http://host/protolator/decode/common.Config
<p>
}
See http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html

@return Channel configuration bytes.
@throws TransactionException