private static void sendMsgToClient(Process process, BufferedReader buffer,
			IoSession session, boolean isNormal) throws IOException {
		String msg;
		try {
			buffer = new BufferedReader(new InputStreamReader(
					isNormal ? process.getInputStream()
							: process.getErrorStream()));
			while ((msg = buffer.readLine()) != null) {
				session.write(msg);
			}
			log.info("write msg to client has run over!");
		} catch (IOException e) {
			log.error("write {} msg to client error!", isNormal ? "normal"
					: "error", e);
			throw e;
		} finally {
			IOUtils.closeQuietly(buffer);
		}
	}