public void setAttribute(String name, Object object) { if (SecurityUtil.isPackageProtectionEnabled()) { doPrivileged("setAttribute", new Object[] {name, object}); } else { context.setAttribute(name, object); } }
@Override public void setAttribute(String name, Object value) throws RemoteException, RemoteException { if ((!getParent().getState().isAvailable()) || "org.apache.jasper.runtime.JspApplicationContextImpl".equals(name)) { tomcatAttributes.put(name, value); } else super.setAttribute(name, value); }