} catch (ClassNotFoundException e) {
getLogger().error("Fail to set application policy configurations", e);
throw new RuntimeException("Fail to set application policy configurations", e);
} finally {
//Clear SpecSecurityBuilder
specSecurityBuilder.clear();
}
}
// for OSGi Web Applications support register ServletContext in service registry
if (WebApplicationUtils.isWebApplicationBundle(bundle)) {
serviceRegistration = WebApplicationUtils.registerServletContext(bundle, getServletContext());