public Properties getProperties(String fileName) {
        Properties properties=new Properties();
        try (InputStream is = new FileInputStream(fileName)){
            if (fileName.endsWith(".xml"))
                properties.loadFromXML(is);
            else
                properties.load(is);

        } catch (IOException e) {
        }
        return properties;
    }