If the object is owned by an applet in the currently active context, access is allowed.
Otherwise, if the object's class implements a Shareable interface, and if the object is being cast into (checkcast) or is being verified as being an instance of (instanceof) an interface that extends the Shareable interface, access is allowed.
Otherwise, if the Java Card RE is the currently active context, access is allowed.