try {
if (msg.getBooleanProperty(JMSBindingConstants.FAULT_PROPERTY)) {
throw new ServiceRuntimeException("remote service exception, see nested exception",(Throwable)((ObjectMessage)msg).getObject());
}
} catch (JMSException e) {
throw new JMSBindingException(e);
}
if (xmlFormat) {
return extractXMLPayload(msg);
} else {
return extractObjectPayload(msg);