You can use ALH API to get a context or a runtime object of a current script evaluation. It is equivalent to $context$ and self.

public Object_ getContext() {
...
}


The following code fragment shows how to get a context of a runtime object through ALH API.

ALH.getContext();             // Object@...