public int decrementBracketScore(int decValue) throws InvalidQueryException {
      bracketScore -= decValue;
      if (bracketScore < 0) {
        throw new InvalidQueryException("Unexpected closing bracket.  Last token type: " + getLastTokenType() +
            ", Current property operand: " + getPropertyOperand() + ", tokens: " + getTokenList());
      }
      return bracketScore;
    }
Decrement the bracket score.  This is done when matching a closing bracket with a previously encountered
opening bracket.  If the requested decrement would result in a negative number an exception is thrown
as this isn't a valid state.

@param decValue  amount to decrement
@return the new bracket score after decrementing
@throws InvalidQueryException if the decrement operation will result in a negative value
ambari-server/src/main/java/org/apache/ambari/server/api/predicate/QueryLexer.java