return instance;
}
public <T> void addDestructor(Contextual<T> comp, T value)
{
EnvironmentClassLoader loader = Environment.getEnvironmentClassLoader();
if (loader != null) {
DestructionListener listener
= (DestructionListener) loader.getAttribute("caucho.destroy");
if (listener == null) {
listener = new DestructionListener();
loader.setAttribute("caucho.destroy", listener);
loader.addListener(listener);
}
listener.addValue(comp, value);
}
}