private boolean followsFileOrFolderLink(InputStream is, String str) throws IOException {        
        int i, c;
        int pos = str.indexOf("master");
        
        if (pos != -1) {
            String beforeMaster = str.substring(0, pos);
            String afterMaster = str.substring(pos+6);
            //System.out.println(str + "; "+ pos +"; "+beforeMaster + "; "+afterMaster);
            if (followsInReader(is,beforeMaster)) {
                for(i=0; i<40; i++) {
                    c = is.read();
                    if (((c >= 'a') && (c <='f')) || ((c>='0') && (c <='9'))) {
                        continue;
                    } else {
                        return false;
                    }
                }
                if (followsInReader(is,afterMaster)) {
                    return true;
                } else {
                    return false;
                }                    
            } else {
                return false;
            }        
        } else {
            //System.out.println(str + "; "+ pos +"; ");
            return followsInReader(is,str);
        }
    }