int position = 0;
for (Class<?> parameterType : method.getParameterTypes())
{
if (!ReservedParameters.isReservedParameter(parameterType))
{
Option option = null;
for (Annotation annotation : method.getParameterAnnotations()[position])
{
if (annotation instanceof Option)
{
option = (Option) annotation;
}
}
char shortName = option.shortName();
String paramName = (option == null || option.value().isEmpty()) ? "param" + position : option.value();
InputComponent<?, ?> input;
if (Iterable.class.isAssignableFrom(parameterType))
{
// TODO: UIInputMany or UISelectMany ?
input = factory.createInputMany(paramName, shortName, parameterType);