private void processDirectory(IWebPath webPath, VegaURI uri) {
synchronized(pathStateManager) {
if(!pathStateManager.hasSeenPath(webPath)) {
webPath.setPathType(PathType.PATH_DIRECTORY);
final PathState ps = pathStateManager.createStateForPath(webPath, directoryProcessor);
if(uri.getQuery() != null) {
ps.maybeAddParameters(URLEncodedUtils.parse(uri.getQuery(), Consts.UTF_8));
}
return;
}
if(webPath.getPathType() != PathType.PATH_DIRECTORY) {
// XXX What to do in this case? The PathState node may be executing PATH_UNKNOWN checks already