Source:
<code>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(); <START> isVmNetwork.setEntity(ApplicationModeHelper.isModeSupported(ApplicationMode.VirtOnly)); <END> setIsVmNetwork(isVmNetwork); EntityModel publicUse = new EntityModel(); publicUse.setEntity(true); setProfiles(new ListModel()); onExportChanged(); updateVlanTagChangeability(); updateMtuChangeability(); }</code><technical_language>Is setting entity based app_mode required</technical_language>

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(); }