code: public static FormItem createFormItem(AbstractReadOnlyAttributeInfo info, VectorLayer layer) {
  		return createFormItem(info, new DefaultAttributeProvider(layer, info.getName()));
  	}
docs: Create a new {@link FormItem} instance for the given attribute info (top level attribute).<br/>
  If the attribute info object has the <code>formInputType</code> set, than that will be used to search for the
  correct field type, otherwise the attribute TYPE name is used (i.e. PrimitiveType.INTEGER.name()).
  
  @param info The actual attribute info to create a form item for
  @param layer The layer to create a form item for (needed to fetch association values)
  @return The new form item instance associated with the type of attribute.