while (it.hasNext()) {
Entry<String, RepositoryHttpEndpointImpl> entry = it.next();
RepositoryHttpEndpointImpl elem = entry.getValue();
if (elem.getRepositoryItem().getId().equals(item.getId())) {
elem.forceStopHttpManager(message);
it.remove();
}
}
}