@Override public XQSequenceType getStaticVariableType(QName name) throws XQException { checkState(ex_expression_closed); if (name == null) { throw new XQException("name is null"); } if (getVarNames().contains(name)) { // where can I get var type?? XQItemType type; XQItemAccessor acc = (XQItemAccessor) getBindings().get(name); if (acc != null) { type = acc.getItemType(); } else { type = connection.createItemType(); } return new BagriXQSequenceType(type, OCC_ZERO_OR_MORE); } throw new XQException("Static variable [" + name + "] does not exist"); }