}
}
void handleEnvelope(PatchParams patchParams, EnvelopeWidget envWidget)
throws IllegalAccessException, NoSuchFieldException {
EnvelopeSpec envelopeSpec = patchParams.addNewEnvelopeSpec();
envelopeSpec.setName(envWidget.getLabel());
envelopeSpec.setUuid(generateUuid());
Node[] nodes = envWidget.getNodes();
for (Node node : nodes) {
EnvelopeNodeSpec nodeSpec = envelopeSpec.addNewEnvelopeNodeSpec();
XEnvelopeParamSpec xParam = nodeSpec.addNewXParam();
YEnvelopeParamSpec yParam = nodeSpec.addNewYParam();
xParam.setInvert(node.isInvertX());
xParam.setMax(node.getMaxX());
if (node.getSenderX() != null) {