src/main/java/utils/Common.java
/**
     * Opens the group by removing curly brackets and process it with
     * {@link #processRecursiveAllKeywords(String, KeywordCollection)}
     * <p>Used by {@link #processRecursiveAllKeywords(String, KeywordCollection)}</p>
     *
     * @param text search this text for matching keywords
     * @param keywords reference to {@link KeywordCollection} container that has a string of keywords.
     *                The final result of the match is written to {@link KeywordCollection#result}.
     *                If there are keywords left to process they will be put in {@link KeywordCollection#keywords}
     * @return true if there are keywords left to process or false if no more left.
     */
Opens the group by removing curly brackets and process it with
#processRecursiveAllKeywords(String, KeywordCollection)
Used by  #processRecursiveAllKeywords(String, KeywordCollection)

@param text search this text for matching keywords
@param keywords reference to  KeywordCollection container that has a string of keywords.
The final result of the match is written to  KeywordCollection#result.
If there are keywords left to process they will be put in  KeywordCollection#keywords
@return true if there are keywords left to process or false if no more left.
Opens the group by removing curly brackets and process it with #processRecursiveAllKeywords ( String KeywordCollection ) Used by #processRecursiveAllKeywords ( String KeywordCollection ) @param text search this text for matching keywords @param keywords reference to KeywordCollection container that has a string of keywords . The final result of the match is written to KeywordCollection#result . If there are keywords left to process they will be put in KeywordCollection#keywords @return true if there are keywords left to process or false if no more left .
private static boolean processGroup(String text, KeywordCollection keywords) {
        int bracketEnd;
        String tempKeyword;
        bracketEnd = getEndIndexOfCurlyBracket(keywords.getKeywords());
        tempKeyword = keywords.getKeywords().substring(2, bracketEnd - 1); 
        KeywordCollection k = new KeywordCollection(tempKeyword);
        while (processRecursiveAllKeywords(text, k)) ;
        keywords.setResult(k.getResult());
        if (bracketEnd + 1 == keywords.keywords.length()) return false;
        else {
            keywords.setKeywords(keywords.getKeywords().substring(bracketEnd + 2));
            return true;
        }
    }
private static boolean processGroup ( String text , KeywordCollection keywords ) { int bracketEnd ; String tempKeyword ; bracketEnd = getEndIndexOfCurlyBracket ( keywords . getKeywords ( ) ) ; tempKeyword = keywords . getKeywords ( ) . substring ( 2 , bracketEnd - 1 ) ; KeywordCollection k = new KeywordCollection ( tempKeyword ) ; while ( processRecursiveAllKeywords ( text , k ) ) ; keywords . setResult ( k . getResult ( ) ) ; if ( bracketEnd + 1 == keywords . keywords . length ( ) ) return false ; else { keywords . setKeywords ( keywords . getKeywords ( ) . substring ( bracketEnd + 2 ) ) ; return true ; } }
Opens the group by removing curly brackets and process it with
 {@link #processRecursiveAllKeywords(String, KeywordCollection)}
 <p>Used by {@link #processRecursiveAllKeywords(String, KeywordCollection)}</p>
Opens the group by removing curly brackets and process it with { @link #processRecursiveAllKeywords ( String KeywordCollection ) } <p > Used by { @link #processRecursiveAllKeywords ( String KeywordCollection ) } < / p >
// Cut out the group keyword and submit for processing // bracket - one space ' }' // Combine results as OR // one for bracket + one for space '} '