throw new GFacProviderException("Keypair for instance:" + amazonSecurityContext.getInstanceId() +
" is not valid");
}
}
jobExecutionContext.getNotificationService().publish(new EC2ProviderEvent("EC2 Instance " +
this.instance.getInstanceId() + " is running with public name " + this.instance.getPublicDnsName()));
} catch (Exception e) {
throw new GFacProviderException("Invalid Request",e,jobExecutionContext);
}