if (TangoAttributeHelper.isAttributeRunning(scanServerName, SCAN_TYPE)) {
final DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
if (proxy != null) {
try {
DeviceAttribute deviceAttribute = proxy.read_attribute(SCAN_TYPE);
value = deviceAttribute.extractLong();
} catch (final DevFailed e) {
LOGGER.error("Cannot read {}/{} {}", scanServerName, SCAN_TYPE, DevFailedUtils.toString(e));
LOGGER.debug("Stack trace", e);
}
}