// is that cut and paste through the system clipboard to native
// applications doesn't work unless you use string selection.
String momlToBeCopied = buffer.toString();
String variablesToBePrepended = "";
try {
MoMLVariableChecker variableChecker = new MoMLVariableChecker();
variablesToBePrepended = variableChecker.checkCopy(
momlToBeCopied, container);
} catch (IllegalActionException ex) {
// Ignore, maybe the missing symbols will work out
// in the pasted context.
}