class App implements Serializable {

    public String getUrlFriendlyName()
    {
        if ( getShortName() != null )
        {
            return getShortName()
                .trim()
                .replaceAll( "[^A-Za-z0-9\\s-]", "" )
                .replaceAll( "\\s+", "-" );
        }

        return null;
    }

}