- removed duplicated code: added getConsumer method to base consumer and pipeline command