}
private static byte[] encodeAMFMessage(ActionMessage message) {
byte[] messageBytes = null;
try {
AmfTrace trace = null;
trace = new AmfTrace();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
AmfMessageSerializer amfser = new AmfMessageSerializer();
SerializationContext context = SerializationContext.getSerializationContext();
context.instantiateTypes = false;