public void removeObject(Long id){
  beans.remove(id);
  graphics.remove(id);
}

public void removeObject ( Long id ) { beans . remove ( id ) ; graphics . remove ( id ) ; }
removes a bean from this layer .
