// must precede the switchClassLoader call - that one needs the JCas link, if it is being used
AbstractCas r = CasManager_impl.getCasInterfaceStatic(ci, casInterface);
// This cas will be unlocked and its class loader restored when the
// next() method returns it
// Insure the same view is passed for switching/restoring https://issues.apache.org/jira/browse/UIMA-2211
ci.switchClassLoader(resourceManager.getExtensionClassLoader());
return r;
}
}