public synchronized void addSmap(String smap,String stratumName){
  embedded.add("*O " + stratumName + "\n"+ smap+ "*C "+ stratumName+ "\n");
}

public synchronized void addSmap ( String smap , String stratumName ) { embedded . add ( "*O " + stratumName + "\n" + smap + "*C " + stratumName + "\n" ) ; }
adds the given string as an embedded smap with the given stratum name .
