code: public void setProperties(Object bean, Map map) {
          checkInitalised();
          for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {
              Map.Entry entry = (Map.Entry) iter.next();
              String key = entry.getKey().toString();
  
              Object value = entry.getValue();
              setProperty(bean, key, value);
          }
      }
docs: Sets a number of bean properties from the given Map where the keys are
  the String names of properties and the values are the values of the
  properties to set