} catch (Exception e) {
throw new BrokerException(e.toString(), e);
}
byte[] buf = bos.toByteArray();
ChangeRecordInfo rec = new ChangeRecordInfo((Long)null, uuid, buf, gp.getType(),
System.currentTimeMillis());
if (gp.getType() == ProtocolGlobals.G_RESET_PERSISTENCE) {
Globals.getStore().getShareConfigChangeStore().storeResetRecord(rec, true, true);
return null;
}
String resetUUID = null;
if (cb.getLastSyncedChangeRecord() != null) {
resetUUID = cb.getLastSyncedChangeRecord().getResetUUID();
}
if (resetUUID == null && cb.getLastStoredChangeRecord() != null) {
resetUUID = cb.getLastStoredChangeRecord().getResetUUID();
}
rec.setResetUUID(resetUUID);
rec = Globals.getStore().getShareConfigChangeStore().storeChangeRecord(rec, true);
cb.setLastStoredChangeRecord(rec);
return rec;
}