@Override public java.sql.Driver createDriver(Properties properties) throws SQLException {
  if (properties != null && !properties.isEmpty()) {
    throw new SQLException();
  }
  return driver;
}

@ Override public java . sql . Driver createDriver ( Properties properties ) throws SQLException { if ( properties != null && ! properties . isEmpty ( ) ) { throw new SQLException ( ) ; } return driver ; }
returns a driver . the h2 driver does not support any properties .
