class LoadBalancerStepDefinitions {

    @When("^attach unregistered instances$")
    public LoadBalancerStepDefinitions registerInstances() {
        List<EC2InstanceTO> instances = executionStateCache.getDeregistedInstance();
        if (instances == null || instances.isEmpty()) {
            throw new RuntimeException("No Instances are available");
        }

        loadBalancerRaider.registerInstancesFromLoadBalancer(executionStateCache.getLoadBalancerName(), Ec2Utils.generateInstanceIdList(instances));
        executionStateCache.clearDeregisteredInstance();

        return this;
    }

    public  LoadBalancerStepDefinitions();

}