void handleIntParamWValues(String[] values, PatchParams patchParams,
int valueMax, int valueMin, String name, ISender sender,
IParamModel paramModel) throws IllegalAccessException,
NoSuchFieldException {
IntParamSpec intParamSpec = patchParams.addNewIntParamSpec();
intParamSpec.setMax(valueMax);
intParamSpec.setMin(valueMin);
intParamSpec.setName(name);
intParamSpec.setUuid(generateUuid());
MidiSender midiSender = intParamSpec.addNewMidiSender();
if (sender == null) {
LOG.warn("Found param w/o sender " + name);
} else {
setSender(midiSender, sender);
}
ParamModel newParamModel = intParamSpec.addNewParamModel();
setParamModel(newParamModel, paramModel);
PatchParamValues paramValues = intParamSpec.addNewPatchParamValues();
for (String string : values) {
XmlString paramValue = paramValues.addNewPatchParamValue();
paramValue.setStringValue(string);
}
}