public void loadPlanetRef(ObjetivoDO objetivo) throws SQLException {
    // XXX: Check this method's semantic
    checkClass(objetivo, ObjetivoDO.class, CHECK_UPDATE);

    PlanetaDAO planetaDAO = new PlanetaDAO();
    planetaDAO.init(connectionBean);

    //		    PlanetaDAO planetaDAO = (PlanetaDAO) FactoryDAO.getDAO(//
    //		    		PlanetaDAO.class, connectionBean) throws ClassNotFoundException, Exception;
    // unmanageable exceptions...

    Reference<PlanetaDO> ref = objetivo.getPlanetaRef();

    // ----------------------------------------
    // If ident == 0 there is nothing to do
    // ----------------------------------------

    if (ref.getRefIdent() == 0) {
      return;
    }

    PlanetaDO planetaDO = //
        (PlanetaDO) planetaDAO.loadById(ref.getRefIdent());

    ref.setRefValue(planetaDO);
  }
  public void loadHabilidadRef(NivelHabilidadDO nivelHabilidadDO) throws SQLException {
    // XXX: Check this method's semantic
    checkClass(nivelHabilidadDO, NivelHabilidadDO.class, CHECK_UPDATE);

    HabilidadDAO habilidadDAO = new HabilidadDAO();
    habilidadDAO.init(connectionBean);

    Reference<HabilidadDO> ref = nivelHabilidadDO.getHabilidadRef();

    if (ref.getRefIdent() == 0) {
      return;
    }

    HabilidadDO habilidadDO = //
        (HabilidadDO) habilidadDAO.loadById(ref.getRefIdent());

    ref.setRefValue(habilidadDO);
  }