{throw new RemoteException(
"index " + start + "out of bounds (" + hitsByDoc.getLength() + ")");}
if (start + howmany >= hitsByDoc.getLength())
{howmany = hitsByDoc.getLength() - start;}
final Serializer serializer = broker.getSerializer();
serializer.reset();
serializer.setProperty(OutputKeys.INDENT, indent ? "yes" : "no");
serializer.setProperty(EXistOutputKeys.EXPAND_XINCLUDES, xinclude ? "yes" : "no");
serializer.setProperty(EXistOutputKeys.HIGHLIGHT_MATCHES, highlight);
xml = new String[howmany];