protected EC2SpotSlave newSpotSlave(SpotInstanceRequest sir, String name)
     throws FormException, IOException {
   return new EC2SpotSlave(
       name,
       sir.getSpotInstanceRequestId(),
       description,
       remoteFS,
       getNumExecutors(),
       mode,
       initScript,
       tmpDir,
       labels,
       remoteAdmin,
       jvmopts,
       idleTerminationMinutes,
       EC2Tag.fromAmazonTags(sir.getTags()),
       parent.name,
       usePrivateDnsName,
       getLaunchTimeout(),
       amiType);
 }
 protected EC2OndemandSlave newOndemandSlave(Instance inst) throws FormException, IOException {
   return new EC2OndemandSlave(
       inst.getInstanceId(),
       description,
       remoteFS,
       getNumExecutors(),
       labels,
       mode,
       initScript,
       tmpDir,
       remoteAdmin,
       jvmopts,
       stopOnTerminate,
       idleTerminationMinutes,
       inst.getPublicDnsName(),
       inst.getPrivateDnsName(),
       EC2Tag.fromAmazonTags(inst.getTags()),
       parent.name,
       usePrivateDnsName,
       useDedicatedTenancy,
       getLaunchTimeout(),
       amiType);
 }