if (e.getActivatedID().equals(config.getSharedObjectID()))
activated();
else
activated(e.getActivatedID());
} else if (event instanceof ISharedObjectDeactivatedEvent) {
ISharedObjectDeactivatedEvent e = (ISharedObjectDeactivatedEvent) event;
if (e.getDeactivatedID().equals(config.getSharedObjectID()))
deactivated();
else
deactivated(e.getDeactivatedID());
} else if (event instanceof IContainerConnectedEvent) {
IContainerConnectedEvent e = (IContainerConnectedEvent) event;
if (e.getTargetID().equals(e.getLocalContainerID()))
connected();
else
connected(e.getTargetID());
} else if (event instanceof IContainerDisconnectedEvent) {
IContainerDisconnectedEvent e = (IContainerDisconnectedEvent) event;
if (e.getTargetID().equals(e.getLocalContainerID()))
disconnected();
else
disconnected(e.getTargetID());
} else if (event instanceof ISharedObjectMessageEvent) {
ISharedObjectMessageEvent e = (ISharedObjectMessageEvent) event;
received(e.getRemoteContainerID(), e.getData());
}
}