code: public static void updatePollingConfigFromDB(final PolledObjectConfig config,
              final AttributePropertiesManager attributePropertiesManager) throws DevFailed {
          final String isPolledProp = attributePropertiesManager.getAttributePropertyFromDB(config.getName(),
                  Constants.IS_POLLED);
          if (!isPolledProp.isEmpty()) {
              config.setPolled(Boolean.valueOf(isPolledProp));
              final String periodProp = attributePropertiesManager.getAttributePropertyFromDB(config.getName(),
                      Constants.POLLING_PERIOD);
              if (!periodProp.isEmpty()) {
                  config.setPollingPeriod(Integer.valueOf(periodProp));
              }
          }
      }
docs: Update polling config in tango db
  
  @param config
  @param attributePropertiesManager
  @throws DevFailed