private static Composite addEOC(Composite composite, Bound eocBound)
    {
        return eocBound == Bound.END ? composite.end() : composite.start();
    }
private static Composite addEOC ( Composite composite , Bound eocBound ) { return eocBound == Bound . END ? composite . end ( ) : composite . start ( ) ; }
Adds an EOC to the specified Composite.

@param composite the composite
@param eocBound the EOC bound
@return a new <code>Composite</code> with the EOC corresponding to the eocBound