code: public void applyConfigurations(Swarm swarm) throws IOException {
          if (get(SERVER_CONFIG) != null) {
              swarm.withXmlConfig(get(SERVER_CONFIG));
          }
          if (get(CONFIG) != null) {
              List<URL> configs = get(CONFIG);
              for (URL config : configs) {
                  swarm.withConfig(config);
              }
          }
          if (get(PROFILES) != null) {
              List<String> profiles = get(PROFILES);
              for (String profile : profiles) {
                  swarm.withProfile(profile);
              }
          }
      }
docs: Apply configuration to the container.
  
  <p>Applies configuration from <code>Key.SERVER_CONFIG</code> and <code>Key.STAGE_CONFIG</code>.</p>
  
  @param swarm Swarm instance to configure.
  @throws MalformedURLException If a URL is attempted to be read and fails.