File file = null;
if (alternateDocBases == null
|| alternateDocBases.size() == 0) {
file = new File(getBasePath(getDocBase()), path);
} else {
AlternateDocBase match = AlternateDocBase.findMatch(
path, alternateDocBases);
if (match != null) {
file = new File(match.getBasePath(), path);
} else {
// None of the url patterns for alternate doc bases matched
file = new File(getBasePath(getDocBase()), path);
}
}