class InstanceFailureStepDefinitions implements EC2StepFunctions {

    @When("^terminate process \"([^\"]*)\"$")
    public InstanceFailureStepDefinitions terminateProcessOnAllHealthyInstances(String processName) throws Throwable {
        List<EC2InstanceTO> instances = executionStateCache.getInstances();
        if (instances == null || instances.isEmpty()) {
            throw new RuntimeException("No Instances are available");
        }
        executionStateCache.addProcessName(processName);

        terminateProcess(processName, instances.size(), instances);

        return this;
    }

    public  InstanceFailureStepDefinitions();

}