private CoasterChannel getChannel(Task task)
     throws InvalidServiceContactException, IllegalSpecException, TaskSubmissionException,
         InvalidSecurityContextException, ChannelException, InterruptedException {
   if (autostart) {
     String provider = getBootHandlerProvider(task);
     url = ServiceManager.getDefault().reserveService(task, provider);
     task.getService(0).setAttribute("coaster-url", url);
   } else {
     url = task.getService(0).getServiceContact().getContact();
   }
   return ChannelManager.getManager().getOrCreateChannel(url, cred, LocalRequestManager.INSTANCE);
 }