* @param localName binding localname string in xpath expression
* @return Object variable resolved by corresponding extension
*/
public static Object resolveVariableContext(MessageContext ctxt, String namespaceURI,
String prefix, String localName) {
SynapseEnvironment environment = ctxt.getEnvironment();
if (environment != null) {
Map<QName, SynapseXpathVariableResolver> extensions =
environment.getXpathVariableExtensions();
SynapseXpathVariableResolver variableResolver =
getMatchingExtensionProvider(extensions, namespaceURI, prefix, localName);
if (variableResolver != null) {
return resolveXpathVariable(variableResolver, ctxt);
}