public static Packet readPacketFromStream(BufferedReader in) throws IOException {
        
        StringBuilder sb = new StringBuilder();
        String line;
        
        while(true) {                        
            line = in.readLine();
            if(line.isEmpty()) {
                
                sb.append("\n");
                line = in.readLine();
                
                if(line.isEmpty()) {
                    sb.append("\n");
                    break;
                } else {
                    sb.append(line + "\n");
                }
                
            } else {
                sb.append(line + "\n");
            }
        }        
        
        //XXX Read from socket
        System.out.println("== READ ==");
        System.out.println(sb.toString());
        System.out.println("== END ==");
        
        return unpack(sb.toString());
    }