private static void rejectUnsupportedOptions(Properties p) throws SQLFeatureNotSupportedException {
  if (p.containsKey(DataSourceFactory.JDBC_ROLE_NAME)) {
    throw new SQLFeatureNotSupportedException("The " + DataSourceFactory.JDBC_ROLE_NAME + " property is not supported by H2");
  }
  if (p.containsKey(DataSourceFactory.JDBC_DATASOURCE_NAME)) {
    throw new SQLFeatureNotSupportedException("The " + DataSourceFactory.JDBC_DATASOURCE_NAME + " property is not supported by H2");
  }
}

private static void rejectUnsupportedOptions ( Properties p ) throws SQLFeatureNotSupportedException { if ( p . containsKey ( DataSourceFactory . JDBC_ROLE_NAME ) ) { throw new SQLFeatureNotSupportedException ( "The " + DataSourceFactory . JDBC_ROLE_NAME + " property is not supported by H2" ) ; } if ( p . containsKey ( DataSourceFactory . JDBC_DATASOURCE_NAME ) ) { throw new SQLFeatureNotSupportedException ( "The " + DataSourceFactory . JDBC_DATASOURCE_NAME + " property is not supported by H2" ) ; } }
checker method that will throw if any unsupported standard osgi options is present .
