protected BshMethod getImportedMethod(String name, Class[] sig) throws UtilEvalError {
		// Try object imports
		if (importedObjects != null)
			for (int i = 0; i < importedObjects.size(); i++) {
				Object object = importedObjects.get(i);
				Class clas = object.getClass();
				Method method = Reflect.resolveJavaMethod(getClassManager(), clas, name, sig, false/* onlyStatic */);
				if (method != null)
					return new BshMethod(method, object);
			}

		// Try static imports
		if (importedStatic != null)
			for (int i = 0; i < importedStatic.size(); i++) {
				Class clas = importedStatic.get(i);
				Method method = Reflect.resolveJavaMethod(getClassManager(), clas, name, sig, true/* onlyStatic */);
				if (method != null)
					return new BshMethod(method, null/* object */);
			}

		return null;
	}