PathCleaner returnCleaner;
if (frameworkType == FrameworkType.SPRING_MVC) {
returnCleaner = new SpringPathCleaner(partialMappings);
} else if (frameworkType == FrameworkType.JSP) {
returnCleaner = new JSPPathCleaner(partialMappings);
} else {
returnCleaner = new DefaultPathCleaner(partialMappings);
}
return returnCleaner;