code: @Override
  	protected StringBuffer doPostProcessBundle(BundleProcessingStatus status, StringBuffer bundleData)
  			throws IOException {
  
  		Matcher matcher = CHARSET_DECLARATION.matcher(bundleData.toString());
  		StringBuffer sb = new StringBuffer();
  		String currentCharset = null;
  		boolean charsetDefinedAtBegining = false;
  		while (matcher.find()) {
  			if (matcher.start() == 0) {
  				currentCharset = matcher.group(1);
  				charsetDefinedAtBegining = true;
  			} else {
  				if (currentCharset != null) {
  					if (!currentCharset.equalsIgnoreCase(matcher.group(1))) {
  						LOGGER.warn("The bundle '" + status.getCurrentBundle().getId()
  								+ "' contains CSS with different charset declaration.");
  					}
  				} else {
  					currentCharset = matcher.group(1);
  					LOGGER.warn("For the bundle '" + status.getCurrentBundle().getId()
  							+ "', the charset declaration is not defined at the top. The charset which will be set is '"
  							+ currentCharset + "'.");
  				}
  
  				matcher.appendReplacement(sb, "");
  			}
  		}
  		matcher.appendTail(sb);
  
  		// Put the declaration on top
  		if (currentCharset != null && !charsetDefinedAtBegining) {
  			sb = new StringBuffer(
  					CHARSET_DECLARATION_PREFIX + currentCharset + CHARSET_DECLARATION_SUFFIX + "\n" + sb.toString());
  		}
  		return sb;
  	}
docs: /*
  (non-Javadoc)
  
  @see net.jawr.web.resource.bundle.postprocess.
  AbstractChainedResourceBundlePostProcessor
  #doPostProcessBundle(net.jawr.web
  .resource.bundle.postprocess.BundleProcessingStatus,
  java.lang.StringBuffer)