@SuppressWarnings("unchecked") public static <R>R readField(Object object,String fieldName) throws NoSuchFieldException {
  return readAvailableField((Class<Object>)object.getClass(),object,fieldName);
}

@ SuppressWarnings ( "unchecked" ) public static < R > R readField ( Object object , String fieldName ) throws NoSuchFieldException { return readAvailableField ( ( Class < Object > ) object . getClass ( ) , object , fieldName ) ; }
reads the field with given fieldname in given object .
