private List<Parameter> parameters(ExecutableElement method) {
List<Parameter> ps = new ArrayList<Parameter>();
for(int i=0;i<method.getParameters().size();i++) {
final VariableElement v = method.getParameters().get(i);
final Cardinality cardinality = method.getParameters().size() - 1 == i ? VARARRAY : ARRAY;
ps.add(new Parameter(v, cardinality));
}
return ps;
}