public static String getSystemSuffix(String suffix, String defaultSuffix)
    {
        if (defaultSuffix == null)
            defaultSuffix = DEFAULT_SYSTEM_SUFFIX;
        if (suffix == null)
            suffix = defaultSuffix;
        for (int i = suffix.length() - 2; i > 0; i--)
        {   // Only use last word
            if (!Character.isLetterOrDigit(suffix.charAt(i)))
            {
                suffix = suffix.substring(i + 1); // Typical to pass groupId
                break;
            }
        }
        return suffix;
    }
public static String getSystemSuffix ( String suffix , String defaultSuffix ) { if ( defaultSuffix == null ) defaultSuffix = DEFAULT_SYSTEM_SUFFIX ; if ( suffix == null ) suffix = defaultSuffix ; for ( int i = suffix . length ( ) - 2 ; i > 0 ; i -- ) { if ( ! Character . isLetterOrDigit ( suffix . charAt ( i ) ) ) { suffix = suffix . substring ( i + 1 ) ; break ; } } return suffix ; }
Get the system suffix, fix it and return it.
@return