try {
//If we are removing a remote Server we need to create a ServerAction.
if(UtilMethods.isSet(remoteServerId) && !remoteServerId.equals("undefined")){
ResetLicenseServerAction resetLicenseServerAction = new ResetLicenseServerAction();
Long timeoutSeconds = new Long(1);
ServerActionBean resetLicenseServerActionBean =
resetLicenseServerAction.getNewServerAction(localServerId, remoteServerId, timeoutSeconds);
resetLicenseServerActionBean = APILocator.getServerActionAPI()
.saveServerActionBean(resetLicenseServerActionBean);
//Waits for 3 seconds in order all the servers respond.