code: @Override
  	public void writeBundleTo(String bundlePath, Writer writer) throws ResourceNotFoundException {
  
  		Reader rd = null;
  
  		try {
  
  			// If debug mode is on, resources are retrieved one by one.
  			if (config.isDebugModeOn()) {
  
  				rd = resourceHandler.getResource(null, bundlePath);
  			} else {
  
  				for (String prefix : bundlePrefixes) {
  					if (bundlePath.startsWith(prefix)) {
  						bundlePath = bundlePath.substring(prefix.length());
  						break;
  					}
  				}
  
  				// Prefixes are used only in production mode
  				String path = PathNormalizer.removeVariantPrefixFromPath(bundlePath);
  				rd = resourceBundleHandler.getResourceBundleReader(path);
  				if (liveProcessBundles.contains(path)) {
  					rd = processInLive(rd);
  				}
  			}
  
  			IOUtils.copy(rd, writer);
  			writer.flush();
  		} catch (IOException e) {
  			throw new BundlingProcessException("Unexpected IOException writing bundle[" + bundlePath + "]", e);
  		} finally {
  			IOUtils.close(rd);
  			IOUtils.close(writer);
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  net.jawr.web.resource.bundle.handler.ResourceBundlesHandler#writeBundleTo
  (java.lang.String, java.io.Writer)