{ try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); }  } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae); defaultInitChannelData(); } catch(DSOutOfServiceException dsose) { ServiceActivationRequest request = new ServiceActivationRequest( ServiceActivationRequest.DATA_SERVICES); registry.getEventBus().post(request);
{ try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData.length != pxsDims.sizeW || channelData == null) defaultInitChannelData(); } catch(DSAccessException dsae) { String s = "Can't retrieve the channel data for "+curImageID+"."; registry.getLogger().error(this, s+" Error: "+dsae); registry.getUserNotifier().notifyError("Data Retrieval Failure", s, dsae);
	void initChannelData()	{		try {			DataManagementService ds = registry.getDataManagementService();			channelData = ds.getChannelData(curImageID);             if (channelData == null) defaultInitChannelData();			else {                if (channelData.length != pxsDims.sizeW)                     defaultInitChannelData();            }                		} catch(DSAccessException dsae) {			String s = "Can't retrieve the channel data for "+curImageID+".";			registry.getLogger().error(this, s+" Error: "+dsae); 			registry.getUserNotifier().notifyError("Data Retrieval Failure", s,				 									dsae);			defaultInitChannelData();		} catch(DSOutOfServiceException dsose) {				ServiceActivationRequest request = new ServiceActivationRequest(									ServiceActivationRequest.DATA_SERVICES);			registry.getEventBus().post(request);            defaultInitChannelData();		} 	}