public static void readAgenda( MarshallerReaderContext context,
DefaultAgenda agenda ) throws IOException {
ObjectInputStream stream = context.stream;
while (stream.readShort() == PersisterEnums.AGENDA_GROUP) {
BinaryHeapQueueAgendaGroup group = new BinaryHeapQueueAgendaGroup( stream.readUTF(),
context.ruleBase );
group.setActive( stream.readBoolean() );
group.setActivatedForRecency( stream.readLong() );
agenda.getAgendaGroupsMap().put( group.getName(),
group );
}
while (stream.readShort() == PersisterEnums.AGENDA_GROUP) {
String agendaGroupName = stream.readUTF();