try {
TweetStoreConnection c = store.createConnection();
try {
PersistenceContext pc
= new PersistenceContext(c);
PlacePersistenceHelper ph = new PlacePersistenceHelper(pc, client, false);
for (String id : ids) {
Place p = new Place(id);
Feature f = pc.persist(p);
ph.submit(p, f);
c.commit();
}
} finally {
c.rollback();