class EC2RaiderImpl implements EC2Raider {

    @Deprecated
    public EC2InstanceTO getEC2StatusByTag(String tag) {
        EC2InstanceTO ec2InstanceTO = null;
        for (Reservation res : ec2Delegator.getEc2().describeInstances().getReservations()) {
            for (Instance i : res.getInstances()) {
                if (i.getState().getName().equalsIgnoreCase("running")) {
                    for (Tag t : i.getTags()) {
                        if (t.getValue().equalsIgnoreCase(tag)) {
                            ec2InstanceTO = this.createEc2Instance(i);
                            break;
                        }
                    }
                }
            }
        }

        if (ec2InstanceTO == null) {
            throw new ResourceNotFoundException("Unable to find EC2 Instances with given tag: " + tag);
        }
        return ec2InstanceTO;

    }

    public  EC2RaiderImpl();

}