@Override public void onMeasurement(IDeviceEventContext context, IDeviceMeasurement mx) throws SiteWhereException { SolrInputDocument document = SiteWhereSolrFactory.createDocumentFromMeasurement(mx); try { queue.put(document); } catch (InterruptedException e) { throw new SiteWhereException("Interrupted during indexing.", e); } }