String reconcilingInstance = reconcileRequest.getInstanceName();
int count = 0;
if (migratedActiveSessionIds != null) {
for (String id : migratedActiveSessionIds) {
ReplicableEntity session = storeInterface.findSessionAndPassivate(id);
if (session != null && saveMigratedSessionToReplicCache) {
ReplicationState state = ReplicationState.createQueryResponseFrom(
session, reconcileRequest.getAppId(), reconcileRequest.getCommand(),
responseCommand, // TODO :: revisit this arg - should it be LOAD_SAS_COMMAND or something?
reconcilingInstance, // origin is deliberately set to reconcilingInstance, so that we can copy this active session to our own replica.