private static void closeReader(Reader reader){
        try{
            if(reader != null){
                reader.close();
            }
        } catch (IOException ex){
            ex.printStackTrace();
        }
    }