public static final int getDimension(Object array) {
		if (array != null) {
			Class<?> clazz = array.getClass();
			if (clazz.isArray()) {
				String className = clazz.getName();
				int len = className.length();
				for (int i = 0; i < len; i++) {
					if (className.charAt(i) != '[') {
						return i;
					}
				}
			}
		}
		return -1;
	}