Source:
public VolumeListModel(final VolumeBrickListModel volumeBrickListModel, final VolumeGeneralModel volumeGeneralModel, final VolumeParameterListModel volumeParameterListModel, final PermissionListModel permissionListModel, final VolumeEventListModel volumeEventListModel, final VolumeGeoRepListModel geoRepListModel) { this.brickListModel = volumeBrickListModel; this.geoRepListModel = geoRepListModel; setDetailList(volumeGeneralModel, volumeParameterListModel, permissionListModel, volumeEventListModel); setTitle(ConstantsManager.getInstance().getConstants().volumesTitle()); setDefaultSearchString("Volumes:"); setSearchString(getDefaultSearchString()); setSearchObjects(new String[] { SearchObjects.GLUSTER_VOLUME_OBJ_NAME, SearchObjects.GLUSTER_VOLUME_PLU_OBJ_NAME }); setAvailableInModes(ApplicationMode.GlusterOnly); setNewVolumeCommand(new UICommand("Create Volume", this)); setNewSnapshotCommand(new UICommand("Create Snapshot", this)); setRemoveVolumeCommand(new UICommand("Remove", this)); setStartCommand(new UICommand("Start", this)); setStopCommand(new UICommand("Stop", this)); setStartRebalanceCommand(new UICommand("StartRebalance", this)); setStopRebalanceCommand(new UICommand("StopRebalace", this)); setStatusRebalanceCommand(new UICommand("StatusRebalance", this)); setStartVolumeProfilingCommand(new UICommand("startProfiling", this)); setShowVolumeProfileDetailsCommand(new UICommand("showProfileDetails", this)); setStopVolumeProfilingCommand(new UICommand("stopProfiling", this)); setOptimizeForVirtStoreCommand(new UICommand("OptimizeForVirtStore", this)); getRemoveVolumeCommand().setIsExecutionAllowed(false); getStartCommand().setIsExecutionAllowed(false); getStopCommand().setIsExecutionAllowed(false); getStartRebalanceCommand().setIsExecutionAllowed(false); getStopRebalanceCommand().setIsExecutionAllowed(false); getStartVolumeProfilingCommand().setIsExecutionAllowed(false); getStopVolumeProfilingCommand().setIsExecutionAllowed(false); getShowVolumeProfileDetailsCommand().setIsExecutionAllowed(true); getSearchNextPageCommand().setIsAvailable(true); getSearchPreviousPageCommand().setIsAvailable(true); }

Target:
public VolumeListModel(final VolumeBrickListModel volumeBrickListModel, final VolumeGeneralModel volumeGeneralModel, final VolumeParameterListModel volumeParameterListModel, final PermissionListModel permissionListModel, final VolumeEventListModel volumeEventListModel, final VolumeGeoRepListModel geoRepListModel) { this.brickListModel = volumeBrickListModel; this.geoRepListModel = geoRepListModel; setDetailList(volumeGeneralModel, volumeParameterListModel, permissionListModel, volumeEventListModel); setTitle(ConstantsManager.getInstance().getConstants().volumesTitle()); setDefaultSearchString("Volumes:"); setSearchString(getDefaultSearchString()); setSearchObjects(new String[] { SearchObjects.GLUSTER_VOLUME_OBJ_NAME, SearchObjects.GLUSTER_VOLUME_PLU_OBJ_NAME }); setAvailableInModes(ApplicationMode.GlusterOnly); setNewVolumeCommand(new UICommand("Create Volume", this)); setNewSnapshotCommand(new UICommand("createSnapshot", this)); setRemoveVolumeCommand(new UICommand("Remove", this)); setStartCommand(new UICommand("Start", this)); setStopCommand(new UICommand("Stop", this)); setStartRebalanceCommand(new UICommand("StartRebalance", this)); setStopRebalanceCommand(new UICommand("StopRebalace", this)); setStatusRebalanceCommand(new UICommand("StatusRebalance", this)); setStartVolumeProfilingCommand(new UICommand("startProfiling", this)); setShowVolumeProfileDetailsCommand(new UICommand("showProfileDetails", this)); setStopVolumeProfilingCommand(new UICommand("stopProfiling", this)); setOptimizeForVirtStoreCommand(new UICommand("OptimizeForVirtStore", this)); getRemoveVolumeCommand().setIsExecutionAllowed(false); getStartCommand().setIsExecutionAllowed(false); getStopCommand().setIsExecutionAllowed(false); getStartRebalanceCommand().setIsExecutionAllowed(false); getStopRebalanceCommand().setIsExecutionAllowed(false); getStartVolumeProfilingCommand().setIsExecutionAllowed(false); getStopVolumeProfilingCommand().setIsExecutionAllowed(false); getShowVolumeProfileDetailsCommand().setIsExecutionAllowed(true); getSearchNextPageCommand().setIsAvailable(true); getSearchPreviousPageCommand().setIsAvailable(true); }