private static String getFirstLine(FMSConnection connection, int articleId) throws IOException {
        debug("Trying to read article: " + articleId);
        ArticleResponse response = connection.article(articleId);

        // MUST be on the first line of the message body.
        LineNumberReader reader =
            new LineNumberReader(new InputStreamReader(response.in, UTF8));
        String line = null;
        String firstLine = null;
        boolean sawHeaderSeparator = false;
        for (;;) {
            line = reader.readLine();
            if (line == null) {
                return null;
            }
            if (line.trim().equals("") && firstLine == null) {
                sawHeaderSeparator = true;
                continue;
            }
            if (!sawHeaderSeparator) {
                continue;
            }
            firstLine = line;
            break;
        }
        debug("GOT LINE: " + firstLine);
        while (reader.readLine() != null) { /* Must consume all data */ }
        return firstLine;
    }