* @param sourceUris source URI's collector
* @throws SQLException if accessing database fails
* @throws IOException if accessing index fails
*/
private void collectExistingSourceURIs(RequestContext context, HrRecord repository, final SourceUriArray sourceUris) throws SQLException, IOException {
CollectSourceUrisRequest request = new CollectSourceUrisRequest(context, repository) {
@Override
protected void onSourceUri(String sourceUri, String uuid) throws IOException {
sourceUris.add(new String[]{sourceUri, uuid});
}
};
request.execute();
}