List<?> routes = (List<?>) data;
IStatus errorInUse = null;
for (Object obj : routes) {
if (obj instanceof CloudRoute) {
CloudRoute rt = (CloudRoute) obj;
if (rt.inUse()) {
errorInUse = CloudFoundryPlugin.getStatus(
NLS.bind(Messages.ERROR_ROUTE_IN_USE, rt.getName()), IStatus.ERROR);
}
}
}