private void synchronizeObjects(List<Persistent> objects,
PersistentAccess persistentAccess) {
for (Persistent persistent : objects) {
Persistent p = persistentAccess.find(persistent.getClass(),
persistent.getId());
if (p != null) {
persistent.setTimestamp(p.getTimestamp());
}
Logger.getLogger("SynchronizerTask").info(
"Sincronizando o objeto " + persistent.getId());
persistentAccess.persist(persistent);
}