public static String getStringValue(AXIOMXPath xpath, MessageContext synCtx) {
if (xpath != null) {
try {
// create an instance of a synapse:get-property() function and set it to the xpath
GetPropertyFunction getPropertyFunc = new GetPropertyFunction();
getPropertyFunc.setSynCtx(synCtx);
// set function context into XPath
SimpleFunctionContext fc = new XPathFunctionContext();
fc.registerFunction(Constants.SYNAPSE_NAMESPACE, "get-property", getPropertyFunc);
fc.registerFunction(null, "get-property", getPropertyFunc);