public static boolean isExpression(String text) {
    if (text == null) {
      return false;
    }
    text = text.trim();
    return text.startsWith("${") || text.startsWith("#{");
  }
public static boolean isExpression ( String text ) { if ( text == null ) { return false ; } text = text . trim ( ) ; return text . startsWith ( "${" ) || text . startsWith ( "#{" ) ; }
Checks whether a {@link String} seams to be an expression or not

@param text the text to check
@return true if the text seams to be an expression false otherwise