code: public static boolean isMacro(String input) {
  
          if (CmsStringUtil.isEmpty(input) || (input.length() < 3)) {
              return false;
          }
  
          return (((input.charAt(0) == I_CmsMacroResolver.MACRO_DELIMITER_OLD)
              && ((input.charAt(1) == I_CmsMacroResolver.MACRO_START_OLD)
                  && (input.charAt(input.length() - 1) == I_CmsMacroResolver.MACRO_END_OLD)))
              || ((input.charAt(0) == I_CmsMacroResolver.MACRO_DELIMITER)
                  && ((input.charAt(1) == I_CmsMacroResolver.MACRO_START)
                      && (input.charAt(input.length() - 1) == I_CmsMacroResolver.MACRO_END))));
      }
docs: Returns <code>true</code> if the given input String if formatted like a macro,
  that is it starts with <code>{@link I_CmsMacroResolver#MACRO_DELIMITER_OLD} +
  {@link I_CmsMacroResolver#MACRO_START_OLD}</code> and ends with
  <code>{@link I_CmsMacroResolver#MACRO_END_OLD}</code>.<p>
  
  @param input the input to check for a macro
  @return <code>true</code> if the given input String if formatted like a macro