public static Properties createProperties(final Map<String,String> map){
  Properties properties=new Properties();
  if (!(map == null || map.isEmpty())) {
    for (    Entry<String,String> entry : map.entrySet()) {
      properties.setProperty(entry.getKey(),entry.getValue());
    }
  }
  return properties;
}

public static Properties createProperties ( final Map < String , String > map ) { Properties properties = new Properties ( ) ; if ( ! ( map == null || map . isEmpty ( ) ) ) { for ( Entry < String , String > entry : map . entrySet ( ) ) { properties . setProperty ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return properties ; }
creates an properties object initialized with the value from the given map . < p >
