if (!Helper.promptMatches(String.format("Are you sure you want to stop the application [%s]: (y/n) ", appId), "[yY].*")) {
return 0;
}
}
ApplicationStatusResponse res = client.applicationStop(appId);
if (res.getStatus().equalsIgnoreCase("stopped"))
System.out.println("application stopped - " + appId);
else
System.out.println("application could not be stopped, current status: " + res.getStatus());