public static ProtocolSignUp getProtocolSignup(String inString)
			throws JDOMException, IOException, TagFormatException {
		SAXBuilder mSAXBuilder = new SAXBuilder();
		Document mDocument = mSAXBuilder.build(new StringReader(inString));
		Element rootNode = mDocument.getRootElement();
		String protType = rootNode.getName();

		if (protType.equals(Tags.SESSION)) {
			String username = rootNode.getChildText(Tags.PEER_NAME);
			int port = Integer.parseInt(rootNode.getChildText(Tags.PORT));
			return new ProtocolSignUp(username, port);
		} else {
			TagFormatException tfe = new TagFormatException(
					"It's not a sign up request protocol");
			throw tfe;
		}
	}