*
* @see com.reignite.messaging.amf.AMFFilter#invoke(com.reignite.messaging.server.AMFServiceContext)
*/
@Override
public void invoke(AMFServiceContext context) {
MessageDeserializer deserializer = context.locateDeserializer();
context.setResponseMessage(new AMFMessage());
AMFMessage message = null;
try {
message = (AMFMessage) deserializer.readMessage();
context.getResponseMessage().setVersion(message.getVersion());
} catch (Exception e) {
LogWriter.error(getClass(), "Failed to deserialize message: " + e, e);
context.getResponseMessage().setVersion(context.getErrorVersion());
AMFMessageBody errorBody = new AMFMessageBody();