//
JAXBContext jaxbContext = JAXBContext.newInstance(AddNumbers.class);
Object payload = msg.getPayload(jaxbContext);
if (payload instanceof AddNumbers) {
AddNumbers req = (AddNumbers)payload;
// now, if the arguments are small, let's do the calculation here
//
int a = req.getArg0();
int b = req.getArg1();
if (isSmall(a) && isSmall(b)) {
int answer = a + b;
System.out.printf("SmallNumberHandler addNumbers(%d, %d) == %d\n", a, b, answer);