public void setupObservers() {
IMediator mediator = new Mediator();
try {
ISimulationServer simServer = (ISimulationServer) getServer();
simServer.setManagementMediator(mediator);
simServer.registerRemoteObserver(new SimulationManagementObserver(this));
} catch (RemoteException e) {
SimSystem.report(e);
}
}