The SessionContext interface provides access to the runtime session
context that the container provides for a session enterprise Bean
instance. The container passes the SessionContext interface to an
instance after the instance has been created. The session context
remains associated with the instance for the lifetime of the instance.

Obtain a reference to the EJB local object that is currently associated with the instance.

An instance of an entity enterprise Bean can call this method only when the instance is associated
with an EJB local object identity, i.e. in the ejbActivate, ejbPassivate, ejbPostCreate, ejbRemove, ejbLoad,
ejbStore, and business methods.

An instance can use this method, for example, when it wants to pass a reference to itself in a method
argument or result.