String cond = bind.condition();
boolean optional = bind.optional();
try {
// make ns available
if(!bind.nsUri().equals("")) {
NamespaceContext nsContext = new NamespaceContext();
nsContext.addPrefix(bind.nsUri(), bind.nsPrefix());
xpath.setNamespaceContext(nsContext);
}