private void sendToClientZipFiles(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 flumeHistoryFolderStr = properties
					.getProperty("flumeHistoryFolder");
			File flumeHistoryFolder = new File(flumeHistoryFolderStr);
			if (!flumeHistoryFolder.exists()) {
				throw new RuntimeException("can't not found the flumeFolder :"
						+ flumeHistoryFolderStr);
			}

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

			ArrayList<String> list = Lists.newArrayList();
			for (File file : flumeHistoryFolder.listFiles()) {
				list.add(file.getName());
				// list.add(StringUtils.split(file.getName(), '.')[0]);
			}
			String treeFileJsonStr = JSONArray.toJSONString(list);
			session.write(treeFileJsonStr);

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

		}
	}