code: public static ServiceAgent newServiceAgent(Settings settings)
      {
          ServiceAgent.Factory factory = Factories.newInstance(settings, Keys.SA_FACTORY_KEY);
          return factory.newServiceAgent(settings);
      }
docs: Creates a new ServiceAgent with the given configuration; the ServiceAgent must be started.
  
  @param settings the configuration for the ServiceAgent
  @return a new ServiceAgent with the given configuration