}
List<String> destinations = new ArrayList<String>();
for (int i = 0; i < addresses.length; i++)
{
DestinationControl control = allDests.get(addresses[i]);
if (control != null)
{
destinations.add(control.getAddress());
}
}
return destinations.toArray(new String[0]);
}