@Mojo(name="restart-application-server")
public class RestartAppServerMojo extends AbstractNeedsEnvironmentMojo {
@Override
protected Object executeInternal() throws MojoExecutionException,
MojoFailureException {
RestartAppServerRequest req = new RestartAppServerRequest();
req.setEnvironmentId(curEnv.getEnvironmentId());
req.setEnvironmentName(curEnv.getEnvironmentName());
getService().restartAppServer(req);
return null;
}