code: public static String resolveMacros(String input, CmsWorkplace wp) {
  
          return new CmsToolMacroResolver(wp).resolveMacros(input);
      }
docs: Resolves the macros in the given input using the provided parameters.<p>
  
  A macro in the form <code>${key}</code> in the content is replaced with it's assigned value
  returned by the <code>{@link I_CmsMacroResolver#getMacroValue(String)}</code> method of the given
  <code>{@link I_CmsMacroResolver}</code> instance.<p>
  
  If a macro is found that can not be mapped to a value by the given macro resolver,
  it is left untouched in the input.<p>
  
  @param input the input in which to resolve the macros
  @param wp the workplace class for falling back
  
  @return the input with the macros resolved