Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/CopyOfJavaBeanUpdatableCollection.java
objectUpdatable.dispose();
	}
	private Collection collection() {
		return (Collection)objectUpdatable.getValue();
	}
	private Object[] array() {
		return (Object[])objectUpdatable.getValue();
	}
	public int computeSize() {
		if (descriptor.getPropertyType().isArray()) {
			return array().length;
		}
		return collection().size();
	}
	public int addElement(Object value, int index) {
		if (descriptor.getPropertyType().isArray())
			Assert.isTrue(false, "cannot add elements"); 		   
		
		Collection list = collection();
		list.add(value);	
		if (index <= 0 || index > list.size())
			index = list.size();
		fireChangeEvent(ChangeEvent.ADD, null, value, index);
		return index;
	}
	
	private Object findElement(int index) {
		Collection list = collection();
		Object o = null;
		int i=0;