}
public List<PollingReadAttributeTask> initializePollTasks(ClientsManager clientsManager, AttributesManager attributesManager) {
List<PollingReadAttributeTask> result = new ArrayList<PollingReadAttributeTask>();
for (final Attribute<?> attribute : attributesManager.getAttributesByMethod(Method.POLL)) {
DeviceAttribute attr = configuration.getDeviceAttribute(attribute.getName().getDeviceName(), attribute.getName().getName());
final Client devClient = clientsManager.getClient(attribute.getName().getDeviceName());
result.add(new PollingReadAttributeTask(attribute, devClient, attr.getDelay(), true, LOGGER));
}
return result;
}