private void validate() throws IOException {

        if(IndexConfig.indexLoc == null )
            throw new NullPointerException();

        indexFolder = new File(IndexConfig.indexLoc);

        if( indexFolder.isDirectory() ) {
            System.err.println("Directory at INDEX_LOC already exists, please delete it and run again.");
            throw new IOException();
        }

        if( indexFolder.isFile() ) {
            System.err.println("File found at INDEX_LOC while expecting nothing, please delete it and run again.");
            throw new IOException();
        }

        boolean isDirectoryCreated = indexFolder.mkdir();

        if( isDirectoryCreated == false ) {
            System.err.println("Something went wrong with directory creation; please check INDEX_LOC once again.");
            throw new IOException();
        }

        dumpFile = new File(IndexConfig.twitterDumpPath);

        if( dumpFile.isDirectory() ) {
            System.err.println("Expecting file found directory, please check the TWITTER_DUMP and run again.");
            throw new IOException();
        }

        if( dumpFile.exists() == false ) {
            System.err.println("File at TWITTER_DUMP does not exists, check TWITTER_DUMP and run again.");
            throw new IOException();
        }

    }