Code example for PropertyNotFoundException

0
		} 
	} 
 
	private static Field getField(Class clazz, String name) throws PropertyNotFoundException {
		if ( clazz==null || clazz==Object.class ) {
			throw new PropertyNotFoundException("field not found: " + name); 
		} 
		Field field;
		try { 
			field = clazz.getDeclaredField(name);
		} 
		catch (NoSuchFieldException nsfe) {
			field = getField( clazz, clazz.getSuperclass(), name );
		} 
		if ( !ReflectHelper.isPublic(clazz, field) ) field.setAccessible(true);
		return field;
	} 
 
	private static Field getField(Class root, Class clazz, String name) throws PropertyNotFoundException {
		if ( clazz==null || clazz==Object.class ) {
Connect your IDE to all the code out there  Get Codota for Java