code: public static void configurePolling(final int pollingPeriod, final PolledObjectConfig config,
              final AttributePropertiesManager attributePropertiesManager) throws DevFailed {
          final int unsignedPolling = Math.abs(pollingPeriod);
          config.setPolled(true);
          config.setPollingPeriod(unsignedPolling);
          attributePropertiesManager.setAttributePropertyInDB(config.getName(), Constants.IS_POLLED, "true");
          attributePropertiesManager.setAttributePropertyInDB(config.getName(), Constants.POLLING_PERIOD,
                  Integer.toString(unsignedPolling));
      }
docs: Configure polling
  
  @param pollingPeriod
  the polling period
  @param config
  the polling config
  @param attributePropertiesManager
  the attribute properties manager
  @throws DevFailed