code: public static boolean hasVariable( final String string,
                                         final String variableName )
      {
          return ( string.indexOf( VARIABLE_START_DELIM + variableName
                  + VARIABLE_END_DELIM ) >= 0 );
      }
docs: Checks to see if a string contains a variable of type ${variableName}
  embedded within it.
  
  @param string to check
  @param variableName to check for
  @return true/false