private final ObjectMapper mapper = new ObjectMapper();
@Override
protected byte[] doFilter(byte[] input, Map<String, Object> metaData) {
MethodCallMessage request;
try {
LOGGER.trace("attempt to read SecureRequest from inputData");
request = mapper.readValue(input, MethodCallMessage.class);
} catch (IOException e) {
throw new FilterException(e);
}
String callId = request.getCallId();
LOGGER.info("extracted callId \"{}\" from message", callId);
metaData.put("callId", callId);
LOGGER.debug("converting arguments of inputmessage");
JsonUtils.convertAllArgs(request);
LOGGER.debug("invoking next filter: {}", next.getClass().getName());