final VirtualFile childFile = file.getChild(child);
if (!childFile.exists()) {
if (throwExceptionIfNotFound) {
throw WSLogger.ROOT_LOGGER.missingChild(child, virtualFile);
} else {
<BUG>if (WSLogger.ROOT_LOGGER.isTraceEnabled()) WSLogger.ROOT_LOGGER.tracef("Child '%s' not found for VirtualFile: %s", child, virtualFile);
return null;</BUG>
}
}
return new VirtualFileAdaptor(childFile);

final VirtualFile childFile = file.getChild(child);
if (!childFile.exists()) {
if (throwExceptionIfNotFound) {
throw WSLogger.ROOT_LOGGER.missingChild(child, virtualFile);
} else {
WSLogger.ROOT_LOGGER.tracef("Child '%s' not found for VirtualFile: %s", child, virtualFile);
return null;
}
}
return new VirtualFileAdaptor(childFile);
