code: public static void declareApplicationExchanges( String domain, String applicationName, Channel channel )
  	throws IOException {
  
  		// "topic" is a keyword for RabbitMQ.
  		if( applicationName != null ) {
  			String exch = buildExchangeNameForAgent( domain, applicationName );
  			channel.exchangeDeclare( exch, "topic" );
  		}
  	}
docs: Declares the required exchanges for an application (only for agents).
  @param domain the domain name
  @param applicationName the application name
  @param channel the RabbitMQ channel
  @throws IOException if an error occurs