code: public static boolean hasBrackets( String condition ){
          String value = StringUtils.stripToEmpty( condition );
          return value.startsWith( "${" ) && value.endsWith( "}" );
      }
docs: Checks if the given string starts with ${ and ends with } (the input is striped of whitespace first)