code: public boolean supportsGetGeneratedKeys(DatabaseMetaData meta) {
      try {
        //
        //   invoking JDK 1.4 method by reflection
        //
        return ((Boolean) DatabaseMetaData.class.getMethod("supportsGetGeneratedKeys", null).invoke(meta, null)).booleanValue();
      } catch(Throwable e) {
        getLogger().info("Could not call supportsGetGeneratedKeys method. This may be recoverable");
        return false;
      }
    }
docs: This method handles cases where the
  {@link DatabaseMetaData#supportsGetGeneratedKeys} method is missing in the
  JDBC driver implementation.