docs: public static void replace(Tag src, Tag trg, boolean moveBody) {
  	trg.setParent(src.getParent());
  
  	Body p = (Body) src.getParent();
  	List<Statement> stats = p.getStatements();
  	Iterator<Statement> it = stats.iterator();
  	Statement stat;
  	int count = 0;
  
  	while (it.hasNext()) {
  	    stat = it.next();
  	    if (stat == src) {
  		if (moveBody && src.getBody() != null) src.getBody().setParent(trg);
  		stats.set(count, trg);
  		break;
  	    }
  	    count++;
  	}
      }