public static boolean getClientIsAcceptChat(String inString)
			throws TagFormatException, JDOMException, IOException {
		SAXBuilder mSAXBuilder = new SAXBuilder();
		Document mDocument = mSAXBuilder.build(new StringReader(inString));

		Element rootNode = mDocument.getRootElement();
		String protType = rootNode.getName();

		if (protType.equals(Tags.CHAT_ACCEPT)) {
			return true;
		} else if (protType.equals(Tags.CHAT_DENY)) {
			return false;
		} else {
			TagFormatException tfe = new TagFormatException(
					"It's not a result of request chat protocol");
			throw tfe;
		}
	}