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 ; }
Get the system suffix fix it and return it .