try {
RemoteRestAdminCommand rac = new RemoteRestAdminCommand(name,
programOpts.getHost(), programOpts.getPort(),
programOpts.isSecure(), programOpts.getUser(),
programOpts.getPassword(), logger);
rac.executeCommand(params);
return SUCCESS;
} catch(CommandException ce) {
if ( ce.getCause() instanceof ConnectException) {
//Remote change failure - change password with default values of
// domaindir and domain name,if the --host option is not provided.