= (SipTransactionPersistentManager)this.getSipSessionManager();
BackingStore replicator = mgr.getSipSessionBackingStore();
if(!(replicator instanceof JxtaBackingStoreImpl)) {
return null;
}
JxtaBackingStoreImpl jxtaReplicator = (JxtaBackingStoreImpl)replicator;
ReplicationState transmitState = null;
byte[] sessionState = ReplicationUtil.getByteArray(haSession, isReplicationCompressionEnabled());
SimpleMetadata simpleMetadata =
SimpleMetadataFactory.createSimpleMetadata(
haSession.getVersion(),
haSession.getInternalLastAccessedTime(),
0L, //maxinactiveinterval
sessionState,
haSession.getExtraParameters() //containerExtraParam
);
if(haSession.getParentSASId() != null) {
String beKey = SipApplicationSessionUtil.getSipApplicationKey(haSession.getParentSASId());
simpleMetadata.setBeKey(beKey);
simpleMetadata.setOwningInstanceName(ReplicationUtil.getInstanceName());
}
try {
transmitState = jxtaReplicator.getSimpleTransmitState(haSession.getId(), simpleMetadata);
} catch (BackingStoreException ex) {}
return transmitState;
}