public byte[] serializeMessage(String contenido) {
try {
ActionMessage requestMessage = new ActionMessage();
ByteArrayOutputStream outBuffer = new ByteArrayOutputStream();
MessageBody amfMessage = new MessageBody(targetURI, responseURI, new com.thoughtworks.xstream.XStream().fromXML(contenido));
requestMessage.addBody(amfMessage);
MessageSerializer amfMessageSerializer = new AmfMessageSerializer();
amfMessageSerializer.initialize(dsContext, outBuffer, trace);
amfMessageSerializer.writeMessage(requestMessage);
return outBuffer.toByteArray();