public void putIdElement(String id,Element obj){
  objWithId.put(id,new WeakReference<>(obj));
}

public void putIdElement ( String id , Element obj ) { objWithId . put ( id , new WeakReference < > ( obj ) ) ; }
add an object id .
