public Object evaluate(Context context) throws UnresolvableException { String prefix = getPrefix(); String namespaceURI = null; // default namespace is not used within XPath expressions if (prefix != null && !"".equals(prefix)) { namespaceURI = context.translateNamespacePrefixToUri( prefix ); } return context.getVariableValue( namespaceURI, prefix, localName ); }