map = new ProcessorMap<JsonRef, ValueHolder<SchemaTree>, ValueHolder<SchemaTree>>(FUNCTION);
Dictionary<SyntaxChecker> dict;
dict = cfg.getDefaultLibrary().getSyntaxCheckers();
final SyntaxProcessor byDefault = new SyntaxProcessor(
cfg.getSyntaxMessages(), dict);
map.setDefaultProcessor(byDefault);
final Map<JsonRef,Library> libraries = cfg.getLibraries();
JsonRef ref;
SyntaxProcessor syntaxProcessor;
for (final Map.Entry<JsonRef, Library> entry: libraries.entrySet()) {
ref = entry.getKey();
dict = entry.getValue().getSyntaxCheckers();
syntaxProcessor = new SyntaxProcessor(syntaxMessages, dict);
map.addEntry(ref, syntaxProcessor);
}
processor = map.getProcessor();
}