synchronized (JCasImpl.class) {
Map classLoaderToLoadedJCasTypes = (Map) typeSystemToLoadedJCasTypesByClassLoader.get(casImpl
.getTypeSystemImpl());
if (null == classLoaderToLoadedJCasTypes) {
classLoaderToLoadedJCasTypes = new WeakHashMap(4);
typeSystemToLoadedJCasTypesByClassLoader.put(casImpl.getTypeSystemImpl(),
classLoaderToLoadedJCasTypes);
}
classLoaderToLoadedJCasTypes.put(cl, jcasTypes);
}