package pt.ist.expenditureTrackingSystem.presentationTier.renderers.dataProvider; import pt.ist.expenditureTrackingSystem.domain.dto.ChangeFinancerAccountingUnitBean; import pt.ist.fenixWebFramework.rendererExtensions.converters.DomainObjectKeyConverter; import pt.ist.fenixWebFramework.renderers.DataProvider; import pt.ist.fenixWebFramework.renderers.components.converters.Converter; public class UnitAccountingUnitsProvider implements DataProvider { @Override public Converter getConverter() { return new DomainObjectKeyConverter(); } @Override public Object provide(Object source, Object currentValue) { ChangeFinancerAccountingUnitBean financerBean = (ChangeFinancerAccountingUnitBean) source; return financerBean.getFinancer().getCostCenterAccountingUnits(); } }