Here you can find the source of toProperties(Map
public static Properties toProperties(Map<String, String> parse)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Properties toProperties(Map<String, String> parse) { Properties properties = new Properties(); properties.putAll(parse);/*from w w w .ja va 2 s . c o m*/ return properties; } }