class XPathPayloadEndpointMapping extends AbstractMapBasedEndpointMapping implements InitializingBean {

	@Override
	protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception {
		Element payloadElement = getMessagePayloadElement(messageContext.getRequest());
		return expression.evaluateAsString(payloadElement);
	}

}