private static final Logger log = Logger.getLogger(OperationProcessor.class.getName());
@SuppressWarnings("unchecked")
public static DocumentBridge createSnapshot(final String docType, final String docId,
JsonObject snapshotData) {
JreJsonArray snapshot = snapshotData.containsField(Key.SNAPSHOT)
? new JreJsonArray(snapshotData.getArray(Key.SNAPSHOT).toList()) : null;
DocumentBridge bridge = new DocumentBridge(null, docType + "/" + docId, snapshot, null, null);
return bridge;
}