public Collection getChildren() throws SourceException {
return this.children.values();
}
private Map createChildren() throws MalformedURLException, IOException {
Map children = new HashedMap(this.blockContexts.size() * 2 + 1);
SourceResolver resolver = null;
try {
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
Iterator i = this.blockContexts.entrySet().iterator();
while (i.hasNext()) {
Entry entry = (Entry) i.next();
String blockName = (String) entry.getKey();
String contextPath = (String) entry.getValue();
Source child = resolver.resolveURI(contextPath);
if (child instanceof TraversableSource)
child = adjustName((TraversableSource) child, blockName);
children.put(blockName, child);
}
return children;
} catch (ServiceException se) {
throw new CascadingIOException("SourceResolver is not available.", se);
} finally {