{
Set appliedProperties = new HashSet();
for (Iterator iter = propertySet.getProperty().iterator(); iter.hasNext();)
{
PropertyConfig propertyConfig = (PropertyConfig) iter.next();
if (appliedProperties.contains(propertyConfig.getName()))
{
iter.remove();
}
else
{
try
{
BeanUtils.setProperty(bean, propertyConfig.getName(), TextUtils.replaceClasspathVariables(propertyConfig.getValue()));
appliedProperties.add(propertyConfig.getName());
log.debug("set " + bean.getClass().getName() + " " + propertyConfig.getName() + "=" + TextUtils.replaceClasspathVariables(propertyConfig.getValue())) ;
}
catch (InvocationTargetException t)
{
log.error("unable to set property name=" + propertyConfig.getName() + " value=" + propertyConfig.getValue() + " on object of class "
+ bean.getClass().getName() + ": " + t.getCause().getMessage(), t.getCause());
}
}
}
}