log.severe("Could not get connection", e); instead of e.printStackTrace()?