Bug 126839 [DataBinding] IObservable refactoring
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/PropertyHelper.java
/**
	 * @param root
	 * @return true if getter is available (nested element property may not be available)
	 */
	public boolean canGet(Object root) {
		return getGetter()!=null && get(root, propertyList.length-2)!=null;
	}
	
	/**
	 * @return final nested property
	 */
	public String getLeafProperty() {
		return propertyList[propertyList.length-1];
	}
	
	/**
	 * @param root
	 * @return (nested) target object 
	 */
	public Object getLeafTarget(Object root) {
		int index = propertyList.length-2;
		if (index<0) {
			return root;
		}
		return get(root, index);
	}
	
}