class JaxbElementPayloadMethodProcessor extends AbstractJaxb2PayloadMethodProcessor {

	@Override
	public JAXBElement<?> resolveArgument(MessageContext messageContext, MethodParameter parameter) throws JAXBException {
		ParameterizedType parameterizedType = (ParameterizedType) parameter.getGenericParameterType();
		Class<?> clazz = (Class<?>) parameterizedType.getActualTypeArguments()[0];
		return unmarshalElementFromRequestPayload(messageContext, clazz);
	}

}