String propertyName = null;
if (properties == null) { return; }  for (Object property : properties.keySet()) { String propertyName = null;
    public static void setProperties(Object target, Properties properties) {        String propertyName = null;        for (Object property : properties.keySet()) {            try {                propertyName = (String) property;                if (PropertyUtils.isWriteable(target, propertyName)) {                    BeanUtils                            .copyProperty(target, propertyName, properties.getProperty(propertyName));                }                else {                    logger.warn("The object " + target + " does not support property '" + propertyName + "': Not writeable!");                }            } catch (Exception e) {                logger.warn("The object " + target + " does not support property '" + propertyName + "': " + e);            } // IllegalAccessException, InvocationTargetException, NoSuchMethodException        }    }