docs: @SuppressWarnings("unchecked")
  	static public void addEncoder(CamelContext context, String name, ChannelDownstreamHandler encoder){
  		CombinedRegistry registry = getCombinedRegistry(context);
  		addCodecOnly(registry, name, encoder);
  		
  		List<ChannelDownstreamHandler> encoders;
  		Object o = registry.lookup(NAME_ENCODERS);
  		if (o == null){
  			encoders = new ArrayList<ChannelDownstreamHandler>();
  			registry.getDefaultSimpleRegistry().put(NAME_ENCODERS, encoders);
  		}else{
  			try{
  				encoders = (List<ChannelDownstreamHandler>)o;
  			}catch(Exception e){
  				throw new IllegalArgumentException("Preserved name '" + NAME_ENCODERS + "' is already being used by others in at least one of the registries.");
  			}
  		}
  		encoders.add(encoder);
  	}