class PayloadTransformingInterceptor extends TransformerObjectSupport implements EndpointInterceptor, InitializingBean {

	@Override
	public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception {
		if (requestTemplates != null) {
			WebServiceMessage request = messageContext.getRequest();
			Transformer transformer = requestTemplates.newTransformer();
			transformMessage(request, transformer);
			logger.debug("Request message transformed");
		}
		return true;
	}

}