protected List < String > getAlternatePaths ( String path ) { List < String > alternatePaths = new ArrayList <> ( ) ; if ( path . startsWith ( "/" ) ) { //People are often confused about leading slashes in resource paths... alternatePaths . add ( path . substring ( 1 ) ) ; } return alternatePaths ; }
Return alternate options for the given path that the user maybe meant . Return in order of likelihood .