Source:
<code>public DataCenterModel() { setName(new EntityModel<String>()); setDescription(new EntityModel<String>()); setComment(new EntityModel<String>()); setVersion(new ListModel<Version>()); setStoragePoolType(new ListModel<Boolean>()); getStoragePoolType().getSelectedItemChangedEvent().addListener(this); getStoragePoolType().setItems(Arrays.asList(Boolean.FALSE, Boolean.TRUE)); setQuotaEnforceTypeListModel(new ListModel<QuotaEnforcementTypeEnum>()); List<QuotaEnforcementTypeEnum> list = AsyncDataProvider.getQuotaEnforcmentTypes(); getQuotaEnforceTypeListModel().setItems(list); getQuotaEnforceTypeListModel().setSelectedItem(list.get(0)); setMacPoolListModel(new ListModel<MacPool>()); setMacPoolModel(new MacPoolModel()); getMacPoolModel().setIsChangable(false); getMacPoolListModel().getSelectedItemChangedEvent().addListener(this); startProgress(null); Frontend.getInstance().runQuery(VdcQueryType.GetAllMacPools, new VdcQueryParametersBase(), new AsyncQuery(new INewAsyncCallback() { @Override public void onSuccess(Object model, Object returnValue) { <START> ArrayList<MacPool> <END> allMacPools = new ArrayList<MacPool>((Collection<MacPool>) ((VdcQueryReturnValue) returnValue).getReturnValue()); Collections.sort(allMacPools, new Linq.SharedMacPoolComparator()); getMacPoolListModel().setItems(allMacPools); initSelectedMacPool(); stopProgress(); } })); setMaxNameLength(1); AsyncQuery _asyncQuery = new AsyncQuery(); _asyncQuery.setModel(this); _asyncQuery.asyncCallback = new INewAsyncCallback() { @Override public void onSuccess(Object model, Object result) { DataCenterModel dataCenterModel = (DataCenterModel) model; dataCenterModel.setMaxNameLength((Integer) result); } }; AsyncDataProvider.getDataCenterMaxNameLength(_asyncQuery); }</code><technical_language>Please interface List in left side</technical_language>

Target:
public DataCenterModel() { setName(new EntityModel<String>()); setDescription(new EntityModel<String>()); setComment(new EntityModel<String>()); setVersion(new ListModel<Version>()); setStoragePoolType(new ListModel<Boolean>()); getStoragePoolType().getSelectedItemChangedEvent().addListener(this); getStoragePoolType().setItems(Arrays.asList(Boolean.FALSE, Boolean.TRUE)); setQuotaEnforceTypeListModel(new ListModel<QuotaEnforcementTypeEnum>()); List<QuotaEnforcementTypeEnum> list = AsyncDataProvider.getQuotaEnforcmentTypes(); getQuotaEnforceTypeListModel().setItems(list); getQuotaEnforceTypeListModel().setSelectedItem(list.get(0)); setMacPoolListModel(new SortedListModel<MacPool>(new Linq.SharedMacPoolComparator())); setMacPoolModel(new MacPoolModel()); getMacPoolModel().setIsChangable(false); getMacPoolListModel().getSelectedItemChangedEvent().addListener(this); startProgress(null); Frontend.getInstance().runQuery(VdcQueryType.GetAllMacPools, new VdcQueryParametersBase(), new AsyncQuery(new INewAsyncCallback() { @Override public void onSuccess(Object model, Object returnValue) { getMacPoolListModel().setItems((Collection<MacPool>) ((VdcQueryReturnValue) returnValue).getReturnValue()); initSelectedMacPool(); stopProgress(); } })); setMaxNameLength(1); AsyncQuery _asyncQuery = new AsyncQuery(); _asyncQuery.setModel(this); _asyncQuery.asyncCallback = new INewAsyncCallback() { @Override public void onSuccess(Object model, Object result) { DataCenterModel dataCenterModel = (DataCenterModel) model; dataCenterModel.setMaxNameLength((Integer) result); } }; AsyncDataProvider.getDataCenterMaxNameLength(_asyncQuery); }