this.putInReplicationCache(updatedState);
}
}
private ReplicationState updateReplicationState(ReplicationState currentState, ReplicationState newState) {
CompositeMetadata currentComposite
= ReplicationState.createCompositeMetadataFrom(currentState);
CompositeMetadata newComposite
= ReplicationState.createCompositeMetadataFrom(newState);
CompositeMetadata resultComposite
= this.applyCompositeMetadataDeltas(currentComposite, newComposite);
byte[] resultAttributeState = null;
try {
resultAttributeState
= ReplicationState.getByteArrayFromCollection(resultComposite.getEntries());
} catch (IOException ex) {}
ReplicationState updatedState
= ReplicationState.createUpdatedStateFrom(newState, resultAttributeState);
return updatedState;
}