code: public static String getScriptVar(ScriptContext context, String key) {
  		return getScriptVarImpl(getScriptName(context), key);
  	}
docs: Gets a script variable.
  
  @param context the context of the script.
  @param key the key of the variable.
  @return the value of the variable, might be {@code null} if no value was previously set.
  @throws IllegalArgumentException if the {@code context} is {@code null} or it does not contain the name of the script.