public static String getAppName(final String line) {
        if ((line.contains(" in ") && line.indexOf(" in ") < 20)
                || (line.contains(" out ") && line.indexOf(" out ") < 20)) {
            StringTokenizer st = new StringTokenizer(line);
            String temp;
            while (st.hasMoreElements()) {
                temp = st.nextToken(" ");
                if ("in".equals(temp) || "out".equals(temp)) {
                    return st.nextToken(" ");
                }
            }
        }
        return null;
    }