public StompFrame getMessage(BufferedReader br) {
		StringBuffer fullMessage= new StringBuffer();
		int newchar;
		try {
			while ((!_serverShutdown) && ((newchar= br.read()) != -1)){
				if (newchar == _delimiter){
					fullMessage.append(_delimiter);
					break;
				}
				else
					fullMessage.append((char)newchar);
			}
			if (!_serverShutdown){
				if (fullMessage.substring(0, StompFrame.lenghtOfEndlineChar) == StompFrame.endlineChar)
					fullMessage= new StringBuffer(fullMessage.substring(StompFrame.lenghtOfEndlineChar));
				return constructMessage(fullMessage);
			}
			else
				return null;
		} catch (IOException e) {
			if (!_serverShutdown)
				e.printStackTrace();
		}
		return null;
	}