public static void serverFailed(String serviceName){
  if (serviceName.startsWith(validRemoteURL)) {
    serverFailed=true;
  }
 else {
    remoteStubs.remove(serviceName);
  }
}

public static void serverFailed ( String serviceName ) { if ( serviceName . startsWith ( validRemoteURL ) ) { serverFailed = true ; } else { remoteStubs . remove ( serviceName ) ; } }
sets the service to be failed .
