public void readFields(DataInput in) throws IOException {
         String data = new String(in.readLine());
         try {
             String tokens[] = data.split("[=]|[\\{]|[\\}]|[,]");
             if(data.indexOf("Book") != -1 || tokens.length > 0) {
               for( int i = 0; i < tokens.length ; i++) {
                   if(tokens[i].indexOf("title") != -1)
                       title = tokens[i+1];
                   else if(tokens[i].indexOf("author") != -1)
                       author = tokens[i+1];
                   else if(tokens[i].indexOf("releaseDate") != -1)
                       releaseDate=tokens[i+1];
                   else if(tokens[i].indexOf("language") != -1)
                       language=tokens[i+1];    
               }
             }
             else{
                     logger.warn("Book:Invalid Record read " + data);
             }
           }
         catch(Exception ex) {
             logger.error("Book:Error Record read " + data);
             ex.printStackTrace();
         }
             
     }