public Connection getConnection() { try { final Connection conn = sqlc.getConnection(); if (!sqlConnected && conn != null) { this.getLogger().info("SQL connection re-established."); sqlConnected = true; } return conn; } catch (final Exception e) { sqlConnected = false; this.getLogger().severe("Could not fetch SQL connection! " + e.getMessage()); return null; } }