if (queueSpec.getQueueName().getSimpleName().equals(outputName)
&& queueSpec.getOutputSchema().equals(schema)) {
final String queueMetricsName = "process.events.out";
final String queueMetricsTag = queueSpec.getQueueName().getSimpleName();
QueueProducer producer = queueClientFactory.createProducer(queueSpec.getQueueName(), new QueueMetrics() {
@Override
public void emitEnqueue(int count) {
flowletContext.getProgramMetrics().gauge(queueMetricsName, count, queueMetricsTag);
}