this.chooseUnit = (Unit) readDomainObject(Unit.class, Integer.valueOf(this
this.chooseUnit = (Unit) rootDomainObject.readPartyByOID(Integer.valueOf(this
    public Unit getChooseUnit() throws FenixFilterException, FenixServiceException {        if (this.chooseUnit == null && this.getChooseUnitIDHidden() != null                && this.getChooseUnitIDHidden().getValue() != null                && !this.getChooseUnitIDHidden().getValue().equals("")) {            this.chooseUnit = (Unit) readDomainObject(Unit.class, Integer.valueOf(this                    .getChooseUnitIDHidden().getValue().toString()));        }        return chooseUnit;    }