public void run(Integer unitID, Integer parentUnitID) throws FenixServiceException { Unit parentUnit = getParentUnit(parentUnitID); Unit unit = (Unit) rootDomainObject.readPartyByOID(unitID);  if (unit == null) { throw new FenixServiceException("error.inexistent.unit"); } unit.removeParentUnit(parentUnit);
public void run(Integer accountabilityID) throws FenixServiceException { Accountability accountability = rootDomainObject.readAccountabilityByOID(accountabilityID); if (accountability == null) { throw new FenixServiceException("error.inexistent.accountability"); } accountability.delete();
    public void run(Integer unitID, Integer parentUnitID) throws FenixServiceException {        Unit parentUnit = getParentUnit(parentUnitID);        Unit unit = (Unit) rootDomainObject.readPartyByOID(unitID);        if (unit == null) {            throw new FenixServiceException("error.inexistent.unit");        }        unit.removeParentUnit(parentUnit);    }