public ROb<CompanyPerson> registerRelation (Long personCedule, Long companyId, String rolPerson, String passwordCompany){
        System.out.println("++++++++++++ Registar relacion: Me han invocado");
        ROb<CompanyPerson> rob = new ROb<CompanyPerson>();
        try{
            Person person = (Person) personFacade.findByCedule(personCedule).getData();
            Company company = (Company) companyFacade.findById(companyId).getData();
            if(person!=null && company!=null && person.getDeath()==null){
                if(company.getPassword().equals(passwordCompany)){
                    CompanyPerson companyPerson = new CompanyPerson();
                    CompanyPersonPK pk = new CompanyPersonPK();
                    pk.setPersonsCedule(personCedule);
                    pk.setCompaniesId(companyId);
                    companyPerson.setCompanyPersonPK(pk);
                    company.getCompanyPersonCollection().add(companyPerson);
                    companyPerson.setCompany(company);
                    person.getCompanyPersonCollection().add(companyPerson);
                    companyPerson.setPerson(person);
                    companyPerson.setRol(rolPerson);   
                    create(companyPerson);
                    rob.setSuccess(true);
                    rob.setData(companyPerson);
                    return rob;
                }
            }
            rob.setSuccess(false);
            rob.setErr_message("Cant find that Object!");
            return rob;
        }catch(Exception e){
            rob.setSuccess(false);
            rob.setErr_message("Failed transaction!");
            return rob;
        }     
    }