protected void loadObject(Object obj, ResultSet rs) throws RegistryException {
    try {
      if (!(obj instanceof org.oasis.ebxml.registry.bindings.rim.ObjectRefType)) {
        throw new RegistryException(
            ServerResourceBundle.getInstance()
                .getString("message.ObjectRefTypeExpected", new Object[] {obj}));
      }

      ObjectRefType ro = (ObjectRefType) obj;
      ro.setId(rs.getString("id"));

      String home = rs.getString("home");
      if (home != null) {
        ro.setHome(home);
      }

    } catch (SQLException e) {
      log.error(ServerResourceBundle.getInstance().getString("message.CaughtException1"), e);
      throw new RegistryException(e);
    }
  }