code: public static void resetPolling(final PolledObjectConfig config,
              final AttributePropertiesManager attributePropertiesManager) throws DevFailed {
          config.setPolled(false);
          config.setPollingPeriod(0);
          attributePropertiesManager.setAttributePropertyInDB(config.getName(), Constants.IS_POLLED, "false");
          attributePropertiesManager.setAttributePropertyInDB(config.getName(), Constants.POLLING_PERIOD, "0");
      }
docs: Reset polling
  
  @param config
  the polling config
  @param attributePropertiesManager
  the attribute properties manager
  @throws DevFailed