Setting and retrieving global variable values

The following example sets a value to the non-shared global variable named “myGlobalVariable”:
getSessionService().getParameterDataAccessService().setParameterValue
                              ("hatsgv_myGlobalVariable", "some new value");
The following example retrieves a value from the non-shared global variable with the same name.
// This will return some string or null
String str = getSessionService().getParameterDataAccessService().
                                getParameterValue("hatsgv_myGlobalVariable"); 
Note: If the global variable is shared, replace hatsgv_myGlobalVariable with hatssharedgv_myGlobalVariable in the preceding examples.