protected void defineFeedTypeIfNecessary(String content)  {
        if (type == Type.Undefined) {
            int maxSearchLen = Math.min(300, content.length() );
            boolean isRSS = content.substring(0, maxSearchLen).indexOf("<rss") != NOT_FOUND;
            type = isRSS ? Type.RSS : Type.Atom;
        }
    }