private static IParameters parseParameters(String[] args) throws IOException {
        IParameters parameters;
        if (args.length != 0) {
            parameters = new ConsoleParameters(args);
        } else {
            String currentDir = System.getProperty("user.dir") + "\\";
            File propertiesFile = new File(currentDir + FileParameters.DEFAULT_PROPERTIES_FILE_NAME);
            File articlesFile = new File(currentDir + FileParameters.DEFAULT_ARTICLES_FILE_NAME);
            parameters = new FileParameters(propertiesFile, articlesFile);
        }
        return parameters;
    }