package com.dianping.cat.config.content;

import java.io.IOException;

import org.unidal.helper.Files;

import com.dianping.cat.Cat;

public class DefaultContentFetcher implements ContentFetcher {
	private final String PATH = "/config/";

	@Override
	public String getConfigContent(String configName) {
		String path = PATH + configName + ".xml";
		String content = "";

		try {
			content = Files.forIO().readFrom(this.getClass().getResourceAsStream(path), "utf-8");
		} catch (IOException e) {
			Cat.logError(e);
		}
		return content;
	}
}

@@ -39,37 +39,8 @@
 t;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -443,18 +443,16 @@
  catch (
-IO
 Exceptio

modify the fetcher