if (specification.isParseable()) {
parameters.add(new ObjectActionParameterParseable(i, this, paramPeer));
} else if (specification.isNotCollection()) {
parameters.add(new OneToOneActionParameterImpl(i, this, paramPeer));
} else if (specification.isCollection()) {
throw new UnknownTypeException("collections not supported as parameters: " + getIdentifier());
} else {
throw new UnknownTypeException(specification);
}
}
this.parameters = parameters;
}
return parameters;