@Override public XQItem createItem(XQItem item) throws XQException { checkState(ex_connection_closed); if (item == null) { throw new XQException("Item is null"); } if (item.isClosed()) { throw new XQException("Item is closed"); } return new BagriXQItem(xqProcessor, item.getItemType(), item.getAtomicValue()); }