public Object invokeMethod(Reference ref, boolean isVirtual, Object cls,
			Object[] params) throws InterpreterException,
			InvocationTargetException {
		if (isWhite(ref))
			return super.invokeMethod(ref, isVirtual, cls, params);
		MethodIdentifier mi = (MethodIdentifier) Main.getClassBundle()
				.getIdentifier(ref);
		if (mi != null) {
			BytecodeInfo code = mi.info.getBytecode();
			if (code != null)
				return interpreter.interpretMethod(code, cls, params);
		}
		throw new InterpreterException("Invoking library method " + ref + ".");
	}