// Iterate through one container and check if the other
// has the bot operator has well.
synchronized ( container ) {
for ( Iterator iter = container.iterator() ; iter.hasNext() ; ) {
BotOperator operator = (BotOperator)iter.next();
BotOperator oldOperator = get( operator );
// Checks if the bot operator was in both container
if ( oldOperator != null ) {
// The operator is in both container
BotOperator keep = resolver.resolveConflict( operator, oldOperator );
if ( keep != null ) {
// Add the operator
map.put( keep.getOperatorName(), keep );
}
}
}
}