Adds the consumer as a listener of events published by the producer. Typically, the producer is a service, and the consumer is some other service's core implementation.
@param producer the object which will be publishing the events.
@param eventSetName the name of an event set; the consumer will only be registered for that set of events.
@param consumer the object which will be added as a listener.
@param location used when reporting errors, may be null
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.