class EC2RaiderImpl implements EC2Raider {

    @Deprecated
    public List<EC2InstanceTO> getInstancesIdsForOneTag(String tagName) {

        List<String> instanceIds = new ArrayList<String>();


        List tagNames = new ArrayList();

        tagNames.add(tagName);


        DescribeInstancesRequest request = new DescribeInstancesRequest();

        Filter filter1 = new Filter("tag:Name", tagNames);

        DescribeInstancesResult result = ec2Delegator.getEc2().describeInstances(request.withFilters(filter1));

        List<Reservation> reservations = result.getReservations();

        for (Reservation reservation : reservations) {
            List<Instance> instances = reservation.getInstances();


            for (Instance instance : instances) {
                if (instance.getState().getName().equalsIgnoreCase("running")) {
                    instanceIds.add(instance.getInstanceId());
                }
            }
        }
        return getEC2InstancesByIds(instanceIds);
    }

    public  EC2RaiderImpl();

}