/** * This is a helper method to set all the common attributes in the agentConfig. * * @param agentConfig * @param def */ private void setCommonAttributes(WmiAgentConfig agentConfig, Definition def) { agentConfig.setRetries(determineRetries(def)); agentConfig.setTimeout((int)determineTimeout(def)); agentConfig.setUsername(determineUsername(def)); agentConfig.setPassword(determinePassword(def)); agentConfig.setDomain(determineDomain(def)); }