class JavaPropertiesHelper {

    public Map<String, Object> toMap(Properties properties)
    {
        Map<String, Object> map = new HashMap<>();
        for (Map.Entry<Object, Object> property : properties.entrySet())
        {
            String key = property.getKey().toString();
            Object value = property.getValue();

            map.put(key, value);
        }
        return map;
    }

}