code: @Override
      public void validate(final Connection connection) throws EntitlementException, SQLException {
          try(Statement statement = connection.createStatement()) {
              ResultSet result = statement.executeQuery(QUERY);
              if (result.next()) {
                  long stored = result.getLong(1);
                  result = statement.executeQuery(query);
                  if(result.next()) {
                      long actual = result.getLong(1);
                      if(stored != actual) {
                          throw new EntitlementException("Incompatible database detected, unable to start");
                      }
                  }
              }
          }
      }
docs: {@inheritDoc}