public void undeployUnit(final String id, final String group, final String artifact, final String version, final String kbaseName, final String kieSessionName) { view.showBusyIndicator(constants.Please_Wait()); deploymentManagerService.call(new RemoteCallback<Void>() { @Override public void callback(Void nothing) { view.hideBusyIndicator(); view.displayNotification(constants.KjarUndeployed(group, artifact, version)); refreshGrid(); } }, new ErrorCallback<Message>() { @Override public boolean error(Message message, Throwable throwable) { view.hideBusyIndicator(); view.displayNotification(constants.ErrorUndeployFailed()); return true; } }).undeploy(new KModuleDeploymentUnitSummary(id, group, artifact, version, kbaseName, kieSessionName, null, null)); }