{
amf3StringProtocol = new AMF3StringProtocol();
amf3StringProtocol.setMaxFrameSize(1024);
delimiterDecoder = new DelimiterBasedFrameDecoder(amf3StringProtocol.getMaxFrameSize(),
Delimiters.nulDelimiter());
amf3StringProtocol.setBase64Decoder(new Base64Decoder());
amf3StringProtocol.setAmf3ToJavaObjectDecoder(new AMF3ToJavaObjectDecoder());
amf3StringProtocol.setNulEncoder(new NulEncoder());
amf3StringProtocol.setBase64Encoder(new Base64Encoder());
amf3StringProtocol.setJavaObjectToAMF3Encoder(new JavaObjectToAMF3Encoder());
}