if (files[i].isDirectory()) {
messageln("entering directory " + files[i].getAbsolutePath());
c = collection.getChildCollection(files[i].getName());
if (c == null) {
mgtService = (CollectionManagementServiceImpl) collection.getService("CollectionManagementService", "1.0");
c = mgtService.createCollection(URIUtils.encodeXmldbUriFor(files[i].getName()));
}
if (c instanceof Observable && verbose) {
final ProgressObserver observer = new ProgressObserver();
((Observable) c).addObserver(observer);