@SuppressWarnings("rawtypes")
	public static void loadStaticClass(ScriptableObject scope, Class cl) {
		Method methods[] = cl.getDeclaredMethods();
		ArrayList<String> names = new ArrayList<String>();
		for (int i = 0; i < methods.length; i++) {
			if (Modifier.isStatic(methods[i].getModifiers()) && Modifier.isPublic(methods[i].getModifiers())) {
				names.add(methods[i].getName());
			}
		}
		scope.defineFunctionProperties(names.toArray(new String[names.size()]), cl, ScriptableObject.DONTENUM);
	}