/*******************************************************************************
 * Copyright (c) 2015 Oak Ridge National Laboratory.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * The scan engine idea is based on the "ScanEngine" developed
 * by the Software Services Group (SSG),  Advanced Photon Source,
 * Argonne National Laboratory,
 * Copyright (c) 2011 , UChicago Argonne, LLC.
 *
 * This implementation, however, contains no SSG "ScanEngine" source code
 * and is not endorsed by the SSG authors.
 ******************************************************************************/
package org.csstudio.scan.command;

import java.util.Collections;
import java.util.List;

/** Command that executes commands it its body
 *
 *  @author Kay Kasemir
 */
@SuppressWarnings("nls")
public class SequenceCommand extends ScanCommandWithBody
{
    /** Initialize with empty body */
    public SequenceCommand()
    {
        this(Collections.emptyList());
    }

    /** Initialize
     *  @param body Body commands
     */
    public SequenceCommand(final ScanCommand... body)
    {
        super(toList(body));
    }


    /** Initialize
     *  @param body Body commands
     */
    public SequenceCommand(final List<ScanCommand> body)
    {
        super(body);
    }

    /** {@inheritDoc} */
    @Override
    public String toString()
    {
        final StringBuilder buf = new StringBuilder();
        buf.append("Sequence");
        return buf.toString();
    }
}

@@ -825,38 +825,8 @@
 d;%0A%0A
-import java.util.Collections;%0A
 impo
@@ -1011,127 +1011,8 @@
 y%0A%7B%0A
-    /** Initialize with empty body */%0A    public SequenceCommand()%0A    %7B%0A        this(Collections.emptyList());%0A    %7D%0A%0A
     
@@ -1051,32 +1051,46 @@
 dy Body commands
+, may be empty
 %0A     */%0A    pub
@@ -1178,17 +1178,16 @@
 %0A    %7D%0A%0A
-%0A
     /** 
@@ -1416,116 +1416,25 @@
     
-final StringBuilder buf = new StringBuilder();%0A        buf.append(%22Sequence%22);%0A        return buf.toString()
+return %22Sequence%22
 ;%0A  

Remove unneeded SequenceCommand code