public static int getConnectionId(DatabaseIdentifier databaseIdentifier, Connection conn) { if (databaseIdentifier == null || conn == null) { return 0; } try { if (conn.isClosed()) { return 0; } } catch (SQLException e) { EditorCorePlugin.getDefault().log(e); } ConnectionService service = getConnectionService(databaseIdentifier); return service.getConnectionId(databaseIdentifier, conn); }