private ResourceProviderEntry getResourceProviders(final String path,
final Set<ProviderHandler> providers) {
// collect providers along the ancestor path segements
final String[] elements = ResourceProviderEntry.split(path);
ResourceProviderEntry base = rootProviderEntry;
for (final String element : elements) {
if (base.containsKey(element)) {
base = base.get(element);
if (log.isDebugEnabled()) {
log.debug("Loading from {} {} ", element,
base.getResourceProviders().length);
}
for (final ProviderHandler rp : base.getResourceProviders()) {
log.debug("Adding {} for {} ", rp, path);
providers.add(rp);
}
} else {
log.debug("No container for {} ", element);