super(cacheBehaviour, itemCacheSize, pollTimeout);
service = createService(uri, Collections.EMPTY_MAP);
}
private static RepositoryService createService(String uri, Map parameters) throws RepositoryException {
BatchReadConfig brc = null;
if (parameters != null) {
Object param = parameters.get(REPOSITORY_SPI2DAVEX_BATCHREADCONFIG);
if (param != null && param instanceof BatchReadConfig) {
brc = (BatchReadConfig) param;
}
}
if (brc == null) {
brc = new BatchReadConfig() {
public int getDepth(Path path, PathResolver pathResolver) throws NamespaceException {
return 4;
}
};
}