@SuppressWarnings("rawtypes")
   public void setupConfigHandlers(Binding binding, CommonConfig config)
   {
      if (config != null) {
         //start with the use handlers only to remove the previously set configuration
         List<Handler> userHandlers = getNonConfigHandlers(binding.getHandlerChain());
         List<Handler> handlers = convertToHandlers(config.getPreHandlerChains(), binding.getBindingID(), true); //PRE
         handlers.addAll(userHandlers); //ENDPOINT
         handlers.addAll(convertToHandlers(config.getPostHandlerChains(), binding.getBindingID(), false)); //POST
         binding.setHandlerChain(handlers);
      }
   }
@ SuppressWarnings ( "rawtypes" ) public void setupConfigHandlers ( Binding binding , CommonConfig config ) { if ( config != null ) { List < Handler > userHandlers = getNonConfigHandlers ( binding . getHandlerChain ( ) ) ; List < Handler > handlers = convertToHandlers ( config . getPreHandlerChains ( ) , binding . getBindingID ( ) , true ) ; handlers . addAll ( userHandlers ) ; handlers . addAll ( convertToHandlers ( config . getPostHandlerChains ( ) , binding . getBindingID ( ) , false ) ) ; binding . setHandlerChain ( handlers ) ; } }
Setups a given Binding instance using a specified CommonConfig

@param binding    the Binding instance to setup
@param config     the CommonConfig with the input configuration