The class EvaUtils, among others, has the following methods:
The method
void getActiveSWindow()
returns the current window.
Example:
SWindow window = EvaUtils.getActiveSWindow();
The method
void putVariable(Object arg0, Object arg1)
saves values that can be read later with the method
Object getVariable(Object arg0)
The argument arg0 contains the key, that identifies the value of the argument arg1.