Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/PropertyHelper.java
private Method getGetterMethod (Class c, String property) throws SecurityException, NoSuchMethodException {
		if (c==null || property==null) 
			return null;
		Method getter=null;
		
		try {
			getter = c.getMethod(
					"get"+ property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1), new Class[0]); 			
		} 
		catch (SecurityException e) {} 
		catch (NoSuchMethodException e) {}
		
		if (getter==null) {
			
			try {
				getter = c.getMethod(
						"is"+ property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1), new Class[0]); 
			} 
			catch (SecurityException e) {} 
			catch (NoSuchMethodException e) {}
			
			if (getter==null)  
				getter =  c.getMethod(property, new Class[0]);			
		}
		
		if (getter!=null && !getter.isAccessible())
			getter.setAccessible(true);
			
		return getter;