ProtobufMessages.TruthMaintenanceSystem _tms = _session.getTms(); org.drools.marshalling.impl.ProtobufMessages.EntryPoint _ep = _session.getEntryPoint(0); boolean wasOTCSerialized = _ep.getOtcCount() > 0; // if 0, then the OTC was not serialized (older versions of drools) Set<String> tmsEnabled = new HashSet<String>();