}
private Sequence getOption(Sequence[] args) throws XPathException {
final String qnameString = args[0].getStringValue();
final QName qname = QName.parse(context, qnameString, context.getDefaultFunctionNamespace());
final Option option = context.getOption(qname);
if(option != null) {
return new StringValue(option.getContents());
} else {
return Sequence.EMPTY_SEQUENCE;
}
}