public boolean processSearchTerm(final String line, final String searchTermRegex, final boolean onlyReturnValidTime) {
        if (line == null) {
            return false;
        }
        if (searchTermRegex == null || searchTermRegex.length() == 0) {
            return false;
        }
        // Avoid regex characters, escape
        String term = searchTermRegex.replaceAll("\\.", REPL_DOT);                  
        term = ".*(?i)(" + term + ").*";
        final Pattern pattern = Pattern.compile(term);
        final Matcher matcher = pattern.matcher(line);        
        if (matcher.find()) {            
            this.termType = TermType.searchterm;            
            if (!onlyReturnValidTime) {
                return true;
            }
            return this.processTime(line);                       
        } // End of the if //
        return false;
    }