+ " not found");}
final Occurrences occurrences[] = broker.getElementIndex().scanIndexedElements(collection,
inclusive);
final IndexedElement[] result = new IndexedElement[occurrences.length];
for (int i = 0; i < occurrences.length; i++) {
final QName qname = (QName)occurrences[i].getTerm();
result[i] = new IndexedElement(qname.getLocalName(),qname.getNamespaceURI(),
qname.getPrefix() == null ? "" : qname.getPrefix(),
occurrences[i].getOccurrences());
}
return new IndexedElements(result);
} catch (final Exception ex) {
throw new RemoteException(ex.getMessage());