class MarshallingPayloadMethodProcessor extends AbstractPayloadMethodProcessor {

	@Override
	public void handleReturnValue(MessageContext messageContext, MethodParameter returnType, Object returnValue)
			throws Exception {
		if (returnValue == null) {
			return;
		}
		Marshaller marshaller = getMarshaller();
		Assert.state(marshaller != null, "marshaller must not be null");

		if (logger.isDebugEnabled()) {
			logger.debug("Marshalling [" + returnValue + "] to response payload");
		}
		WebServiceMessage response = messageContext.getResponse();
		MarshallingUtils.marshal(marshaller, returnValue, response);
	}

	public  MarshallingPayloadMethodProcessor();
	public  MarshallingPayloadMethodProcessor(Marshaller marshaller);
	public  MarshallingPayloadMethodProcessor(Marshaller marshaller, Unmarshaller unmarshaller);

}