class RDSRaiderImpl implements RDSRaider {

    @Override
    public List<DBStatus> getInstancesStatus(List<String> dbInstanceIds) {
        List<DBInstance> dbInstances = rdsDelegator.getAmazonRds().describeDBInstances(new DescribeDBInstancesRequest()).getDBInstances();
        List<DBStatus> statuses = new ArrayList<DBStatus>();

        for (Iterator<DBInstance> it = dbInstances.iterator(); it.hasNext(); ) {
            DBInstance dbInstance = it.next();
            if (dbInstanceIds.contains(dbInstance.getDBInstanceIdentifier())) {
                statuses.add(new DBStatus(dbInstance.getDBInstanceIdentifier(), dbInstance.getDBInstanceStatus()));
            }
        }
        return statuses;
    }

    public  RDSRaiderImpl();

}