public static StatefulKnowledgeSessionImpl readSession(ProtobufMessages.KnowledgeSession _session,
StatefulKnowledgeSessionImpl session,
InternalAgenda agenda,
MarshallerReaderContext context) throws IOException,
ClassNotFoundException {
GlobalResolver globalResolver = (GlobalResolver) context.env.get( EnvironmentName.GLOBALS );
if ( globalResolver != null ) {
session.setGlobalResolver( globalResolver );
}
if ( session.getTimerService() instanceof PseudoClockScheduler ) {