The Session API interface ought to be implemented by a singleton, but 0772030 inadvertently introduced a way for user code to end up with one instance while PL/Java internals have another. That it hasn't led to any field reports is likely a testament to how little-used that interface is.