* the command was already a multiple command, it is returned, otherwise a new multiple command is
* created to wrap the original escaped command. This helper facilitates merging multiple
* sequences of escapers.
*/
private static AMultipleCommand contentsOf(AEscapeCommand escapeCommand) {
PCommand escapedCommand = escapeCommand.getCommand();
if (escapedCommand instanceof AMultipleCommand) {
return (AMultipleCommand) escapedCommand;
}
AMultipleCommand multiCommand = new AMultipleCommand();
multiCommand.getCommand().add(escapedCommand);