public void stopService(Service service){
  if (service == null) {
    throw new IllegalArgumentException("service is required");
  }
  stopService(service.getSelfLink());
}

public void stopService ( Service service ) { if ( service == null ) { throw new IllegalArgumentException ( "service is required" ) ; } stopService ( service . getSelfLink ( ) ) ; }
detaches service from service host , sets processing stage to stop . this method should only be invoked by the service itself ( and in most cases that is the only possible way since its the only one with access to its reference )
