Code example for NotActiveException

0
	 
	static public DeviceCoordinator getInstance() throws NotActiveException{ 
		if(instance != null){
			return instance;
		}else{ 
			throw new NotActiveException("Device Coordinator not yet active");
		} 
	} 
	 
	static public DeviceCoordinator getInstance(Pusher pusher, OutgoingFragment outgoingFragment, String registeredChannelName){
		if(instance != null){
			return instance;
		}else{ 
			return instance = new DeviceCoordinator(pusher, outgoingFragment, registeredChannelName);
		} 
	} 
	 
	protected DeviceCoordinator(Pusher pusher, OutgoingFragment outgoingFragment, String registeredChannelName) {
		deviceCount = 0;
		deviceList = new ArrayList<DeviceHolder>();
Connect your IDE to all the code out there  Get Codota for Java