List<Status> l = tw.getFriendsTimeline();
PrintWriter pw = response.getWriter();
for (Status status : l) {
TwStatus ts = new TwStatus(status);
List<TwStatus> l1 = em.createQuery(
"select from TwStatus where twId="
+ ts.getId().longValue()).getResultList();
if (l1.isEmpty()) {
System.out.println(status.getText());
EntityTransaction tx = em.getTransaction();
tx.begin();
TwStatus q;
em.persist(q = new TwStatus(status));
pw.println(q.getText());
try {
sendSMS(ts.getName(), ts.getText());
tx.commit();
} catch (OverQuotaException e) {
tx.rollback();