protected NamespacedProperty createNamespacedProperty(SynapseXPath xpath) { NamespacedProperty nsp = EsbFactory.eINSTANCE.createNamespacedProperty(); nsp.setPropertyValue(xpath.toString()); if (xpath.getNamespaces() != null) { @SuppressWarnings("unchecked") Map<String, String> map = xpath.getNamespaces(); nsp.setNamespaces(map); } return nsp; }