Source:
public NetworkModel(Network network, ListModel sourceListModel) { this.network = network; this.sourceListModel = sourceListModel; setName(new EntityModel()); setDescription(new EntityModel()); setComment(new EntityModel()); setDataCenters(new ListModel()); getDataCenters().getSelectedItemChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { syncWithBackend(); } }); setExport(new EntityModel(false)); getExport().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { onExportChanged(); } }); setNetworkLabel(new EntityModel()); setExternalProviders(new ListModel()); initExternalProviderList(); EntityModel stpEnabled = new EntityModel(); stpEnabled.setEntity(false); setIsStpEnabled(stpEnabled); setVLanTag(new EntityModel()); EntityModel hasVlanTag = new EntityModel(); hasVlanTag.setEntity(false); setHasVLanTag(hasVlanTag); getHasVLanTag().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { updateVlanTagChangeability(); } }); setMtu(new EntityModel()); EntityModel hasMtu = new EntityModel(); hasMtu.setEntity(false); setHasMtu(hasMtu); getHasMtu().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { updateMtuChangeability(); } }); EntityModel isVmNetwork = new EntityModel(); isVmNetwork.setEntity(ApplicationModeHelper.isModeSupported(ApplicationMode.VirtOnly)); setIsVmNetwork(isVmNetwork); EntityModel publicUse = new EntityModel(); publicUse.setEntity(true); setProfiles(new ListModel()); onExportChanged(); updateVlanTagChangeability(); updateMtuChangeability(); }

Target:
public NetworkModel(Network network, ListModel sourceListModel) { this.network = network; this.sourceListModel = sourceListModel; setName(new EntityModel()); setDescription(new EntityModel()); setComment(new EntityModel()); setDataCenters(new ListModel()); getDataCenters().getSelectedItemChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { syncWithBackend(); } }); setExport(new EntityModel(false)); getExport().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { onExportChanged(); } }); setNetworkLabel(new EntityModel()); setExternalProviders(new ListModel()); initExternalProviderList(); EntityModel stpEnabled = new EntityModel(); stpEnabled.setEntity(false); setIsStpEnabled(stpEnabled); setVLanTag(new EntityModel()); EntityModel hasVlanTag = new EntityModel(); hasVlanTag.setEntity(false); setHasVLanTag(hasVlanTag); getHasVLanTag().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { updateVlanTagChangeability(); } }); setMtu(new EntityModel()); EntityModel hasMtu = new EntityModel(); hasMtu.setEntity(false); setHasMtu(hasMtu); getHasMtu().getEntityChangedEvent().addListener(new IEventListener() { @Override public void eventRaised(Event ev, Object sender, EventArgs args) { updateMtuChangeability(); } }); EntityModel isVmNetwork = new EntityModel(); isVmNetwork.setEntity(true); setIsVmNetwork(isVmNetwork); EntityModel publicUse = new EntityModel(); publicUse.setEntity(true); setProfiles(new ListModel()); onExportChanged(); updateVlanTagChangeability(); updateMtuChangeability(); }