activationsCount = context.stream.readLong();
}
int strategyIndex = context.stream.readInt();
Object object = null;
ObjectMarshallingStrategy strategy = null;
// This is the old way of de/serializing strategy objects
if (strategyIndex >= 0) {
strategy = context.resolverStrategyFactory.getStrategy( strategyIndex );
}
// This is the new way
else if (strategyIndex == -2) {
String strategyClassName = context.stream.readUTF();
if (!StringUtils.isEmpty( strategyClassName )) {
strategy = context.resolverStrategyFactory.getStrategyObject( strategyClassName );
if (strategy == null) {
throw new IllegalStateException( "No strategy of type " + strategyClassName + " available." );
}
}
}
// If either way retrieves a strategy, use it
if (strategy != null) {
object = strategy.read( context.stream );
}
WorkingMemoryEntryPoint entryPoint = null;
if (context.readBoolean()) {
String entryPointId = context.readUTF();