if ((value != null) && value.isLongConvertible()) {
if (value != null) {
  public static LongValue pg_lo_import(Env env,                                       @NotNull Postgres conn,                                       Path path)  {    try {      //@todo conn should be optional      Value value = pg_lo_create(env, conn);      if ((value != null) && value.isLongConvertible()) {        int oid = value.toInt();        Object largeObject = pg_lo_open(env, conn, oid, "w");        String data = "";        // Open the file        ReadStream is = path.openRead();        writeLobInternal(largeObject, is, Integer.MAX_VALUE);        pg_lo_close(env, largeObject);        is.close();        return LongValue.create(oid);      }    } catch (Exception ex) {      log.log(Level.FINE, ex.toString(), ex);    }    return null;  }