// Rules must be restored by an ObjectInputStream that can resolve using a given ClassLoader to handle seaprately by storing as
// a byte[]
droolsStream.writeObject(this.id);
droolsStream.writeInt(this.workingMemoryCounter.get());
droolsStream.writeObject(this.processes);
droolsStream.writeUTF(this.factHandleFactory.getClass().getName());
droolsStream.writeObject(buildGlobalMapForSerialization());
droolsStream.writeObject(this.partitionIDs);
this.eventSupport.removeEventListener(KieBaseEventListener.class);
droolsStream.writeObject(this.eventSupport);