private static String aliasAsUrlPattern ( final String alias ) { String urlPattern = alias ; if ( urlPattern != null && ! urlPattern . equals ( "/" ) && ! urlPattern . contains ( "*" ) ) { if ( urlPattern . endsWith ( "/" ) ) { urlPattern = urlPattern + "*" ; } else { urlPattern = urlPattern + "/*" ; } } return urlPattern ; }
Transforms an alias into a url pattern .