public void addResourceListener(ResourceEventsListener listener){
  resourceListeners.add(listener);
}

public void addResourceListener ( ResourceEventsListener listener ) { resourceListeners . add ( listener ) ; }
registers a listener to the system
