SC.ask(MSG.view_remoteAgentInstall_overwriteAgentTitle(), MSG.view_remoteAgentInstall_overwriteAgentQuestion(),
new BooleanCallback() {
@Override
public void execute(Boolean overwriteExistingAgent) {
CustomAgentInstallData customData = new CustomAgentInstallData(getAgentInstallPath(),
overwriteExistingAgent.booleanValue(), agentConfigurationXml); //, rhqAgentEnvSh);
remoteInstallService.installAgent(getRemoteAccessInfo(), customData,
new AsyncCallback<AgentInstallInfo>() {
public void onFailure(Throwable caught) {
displayError(MSG.view_remoteAgentInstall_error_4(), caught);