public static ClassType resolveClass(String name, List<String> imports) {
		try {
			Class.forName(name);
			return new ClassType(name);
		} catch (Exception e) {
			if (imports != null) {
				for (String prefix : imports) {
					try {
						Class.forName(prefix + "." + name);
						return new ClassType(prefix + "." + name);
					} catch (Exception e1) {
					}
				}
			}
		}
		return null;
	}