code: static void setBeanProperties(Object object, Properties props)
              throws SQLException {
  
          if (props != null) {
              Enumeration<?> enumeration = props.keys();
              while (enumeration.hasMoreElements()) {
                  String name = (String) enumeration.nextElement();
                  setProperty(object, name, props.getProperty(name));
              }
          }
      }
docs: Sets the given properties on the target object.
  
  @param object the object on which the properties need to be set
  @param props  the properties
  @throws SQLException if a property cannot be set.