public static String getRequestChatName(String inString)
			throws JDOMException, IOException, TagFormatException {
		String result = "";

		SAXBuilder mSAXBuilder = new SAXBuilder();
		Document mDocument = mSAXBuilder.build(new StringReader(inString));

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

		if (protType.equals(Tags.CHAT_REQ)) {
			result = rootNode.getChildText(Tags.PEER_NAME);
		} else {
			TagFormatException tfe = new TagFormatException(
					"It's not a request chat protocol");
			throw tfe;
		}
		System.out.print(result);
		return result;
	}