protected void initialize() throws SharedObjectInitException {
super.initialize();
Trace.entering(Activator.PLUGIN_ID,
SharedObjectDebugOptions.METHODS_ENTERING,
OptimisticSharedObject.class, "initialize"); //$NON-NLS-1$
addEventProcessor(new IEventProcessor() {
public boolean processEvent(Event event) {
if (event instanceof ISharedObjectActivatedEvent) {
// If we've been activated, are primary and are connected
// then replicate to all remotes
if (isPrimary() && isConnected()) {