public void addMacro(String macro,String value){
  if (macro != null && !macro.isEmpty()) {
    setChanged();
synchronized (LOCK) {
      macroMap.put(macro,value);
    }
    notifyObservers(this);
  }
}

public void addMacro ( String macro , String value ) { if ( macro != null && ! macro . isEmpty ( ) ) { setChanged ( ) ; synchronized ( LOCK ) { macroMap . put ( macro , value ) ; } notifyObservers ( this ) ; } }
adds a macro to this macrohandler . if a macro with this name is already present , it will be overwritten .
