package com.github.helpermethod;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;

@Mojo(name = "stop", defaultPhase = LifecyclePhase.POST_INTEGRATION_TEST)
public class StopMojo extends AbstractMojo {
    public void execute() throws MojoExecutionException {
        StubServer server = (StubServer) getPluginContext().remove("server");

        if (server == null) {
            return;
        }

        server.stop();
    }
}
@@ -513,17 +513,17 @@
 (server 
-=
+!
 = null) 
@@ -532,35 +532,8 @@
     
-        return;%0A        %7D%0A%0A
     
@@ -555,11 +555,22 @@
 ();%0A
+        %7D%0A
     %7D%0A%7D
+%0A

Update StopMojo.java