Merge changes I3b55501b,Iea7d1265

* changes:
  AtomicityHelper: Remove usage of deprecated SubmitInput.waitForMerge
  Adapt to upstream changes in Submit.apply(...)
diff --git a/src/main/java/com/criteo/gerrit/plugins/automerge/AutomergeConfig.java b/src/main/java/com/criteo/gerrit/plugins/automerge/AutomergeConfig.java
index 40d0811..bd1bbca 100644
--- a/src/main/java/com/criteo/gerrit/plugins/automerge/AutomergeConfig.java
+++ b/src/main/java/com/criteo/gerrit/plugins/automerge/AutomergeConfig.java
@@ -7,8 +7,6 @@
 import org.eclipse.jgit.lib.Config;
 
 import java.io.File;
-import java.io.IOException;
-
 
 public class AutomergeConfig {
 
@@ -55,9 +53,7 @@
   /**
    * Return a comment from a file located in the gerrit etc_dir
    *
-   * @param filename
    * @return a string containing a comment.
-   * @throws IOException
    */
   public final String getTemplatesPath() {
     return templatesPath.getPath();