         artifact-path (str m2-repo "/org/projectodd/polyglot-" name "/" version "/polyglot-" name "-" version "-module.zip")
         artifact-dir (io/file (System/getProperty "java.io.tmpdir") (str "immutant-" name "-" version))
         dest-dir (io/file (jboss-dir) (str "modules/org/projectodd/polyglot/" name "/main"))]
-    (try 
+    (try
       (.mkdir artifact-dir)
       (unzip artifact-path artifact-dir)
       (FileUtils/deleteQuietly dest-dir)

                :broadcast-group                (replace-socket-with-jgroups loc)
                :discovery-group                (replace-socket-with-jgroups loc)
                loc))))))
  
(defn transform-config [file]
  (let [in-file (io/file (jboss-dir) file)
        out-file in-file]

(defn slim-modules []
  (let [all-modules (extract-all-module-deps (jboss-dir))
        required-modules (-> (extract-extensions-from-standalone-xml)
                             (conj
                               ;; add a few modules that aren't mentioned in any config,
                               ;; but are required at runtime
                               "org.jboss.as.domain-add-user"
                               "org.jboss.as.host-controller"
                               "org.jboss.as.standalone"
                               "org.jboss.as.domain-http-error-context"
                               "com.h2database.h2"
                               "org.jboss.as.cli"
                               "org.fusesource.jansi"
                               "org.jboss.aesh"
                               "javaee.api"
                               "javax.servlet.jstl.api")
                             (find-full-required-module-set all-modules))]
    (doseq [m (filter identity (set/difference (set (keys all-modules)) required-modules))]
      (with-message (str "Deleting module " m)
