private void sendToClientFileTree(IoSession session) throws IOException {
		InputStream openStream = null;
		try {
			URL resource = this.getClass().getClassLoader()
					.getResource("flume.properties");
			openStream = resource.openStream();
			Properties properties = new Properties();
			properties.load(openStream);

			String flumeFolderStr = properties.getProperty("flumeFolder");

			File flumeFolder = new File(flumeFolderStr);
			if (!flumeFolder.exists()) {
				throw new RuntimeException("can't not found the flumeFolder :"
						+ flumeFolderStr);
			}

			if (!flumeFolder.isDirectory()) {
				throw new RuntimeException("flumeFolder '" + flumeFolderStr
						+ "' is not a folder!");
			}

			List<Object> folderList = addChildFiles(flumeFolder);
			String treeFileJsonStr = JSONArray.toJSONString(folderList);
			session.write(treeFileJsonStr);

		} catch (Exception ex) {
			throw new RuntimeException(ex);
		} finally {
			if (null != openStream) {
				openStream.close();
			}

		}
	}