ActionMessage requestMessage = new ActionMessage(getObjectEncoding());
if (amfHeaders != null) {
for (MessageHeader header : amfHeaders) {
requestMessage.addHeader(header);
}
}
MessageBody amfMessage = new MessageBody(command, responseURI, arguments);
requestMessage.addBody(amfMessage);