code: @SuppressWarnings("TryWithIdenticalCatches")
  	public static void registerViewAdapter(Class<? extends View> viewType, Class<? extends IFieldAdapter<? extends View,?>> adapterClass) {
  		if (viewType == null || adapterClass == null) {
  			throw new IllegalArgumentException("arguments must not be null");
  		}
  
  		try {
  			FieldAdapterFactory.registerAdapter(viewType, adapterClass);
  		} catch (IllegalAccessException e) {
  			throw new FormsValidationException(e);
  		} catch (InstantiationException e) {
  			throw new FormsValidationException(e);
  		}
  	}
docs: Register adapter that can be used to get value from view.
  @param viewType type of view adapter is determined to get values from
  @param adapterClass class of adapter to register
  
  @throws IllegalArgumentException if adapterClass is null or viewType is null
  @throws FormsValidationException when there is a problem when accessing adapter class