adding some code to improve connection speed especially public and
private calendars 

if (connection == null  || connection.isValid(0) ||
connection.isValid(1) || connection.isValid(2)) {

connection=DBconnection.getConnection();

}

close connection removed  

finally {
   try { connection.close(); } catch (Exception e) { /* ignored */ }
  }