for (Iterator<Map.Entry<String, RuntimeToolSetFactory>> i = toolsRuntime.entrySet().iterator(); i.hasNext(); ) {
Map.Entry<String, RuntimeToolSetFactory> entry = i.next();
i.remove();
String toolSetName = entry.getKey();
RuntimeToolSetFactory factory = entry.getValue();
int count = 0;
Object tool;
try {
tool = factory.createToolSet();
} catch (Exception ex) {
throw new PullException("Could not create runtime tool-set: \"" + toolSetName + "\"", ex);
}
Iterable<String> names = factory.getToolNames(tool);
if (names != null) {
for (String nameInSet : names) {
if (nameInSet != null) {
toolsInRuntimeSet.put(nameInSet, new ToolSetInfo<RuntimeToolSetFactory>(toolSetName,