Changed ResponseBuilder to add the CollectorFactory to the QueryCommand