public void clear() {
        synchronized (extensions) {    // we synchronize just to guard unnamedMerged
            transformerRegistry = TransformerRegistry.Factory.create();
            extensions.clear();
            reverseMap.clear();
            subsystemsInfo.clear();
        }
    }
public void clear ( ) { synchronized ( extensions ) { transformerRegistry = TransformerRegistry . Factory . create ( ) ; extensions . clear ( ) ; reverseMap . clear ( ) ; subsystemsInfo . clear ( ) ; } }
Clears the registry to prepare for re-registration (e.g. as part of a reload).