@Nonnull
public static PathCleaner getPathCleaner(FrameworkType frameworkType, List<PartialMapping> partialMappings) {
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);
}