private boolean inArray(Object o, Object[] arr) {
		if (o == null || arr == null || arr.length == 0)
			return false;
		for (Object a : arr) {
			if (o.equals( a )) {
				return true;
			}
		}
		return false;
	}