code: @SuppressWarnings("unchecked")
  	private static Method findSetScriptContextMethod(Class clazz) {
  		try {
  			Method setCtxMethod = clazz.getMethod("setScriptContext", 
  						  new Class[] { ScriptContext.class });
  			int modifiers = setCtxMethod.getModifiers();
  			if (Modifier.isPublic(modifiers) && 
  				Modifier.isStatic(modifiers)) {
  				return setCtxMethod;
  			}
  		} catch (NoSuchMethodException nsme) {
  		}
  		return null;
  	}
docs: find public static void setScriptContext(ScriptContext) method, if any