private PartyType getUnitType() throws FenixFilterException, FenixServiceException { PartyType type = null;
private PartyTypeEnum getUnitType() throws FenixFilterException, FenixServiceException { PartyTypeEnum type = null;
    private PartyType getUnitType() throws FenixFilterException, FenixServiceException {        PartyType type = null;        if (!this.getUnitTypeName().equals("#")) {            type = PartyType.valueOf(this.getUnitTypeName());        }        return type;    }