* @throws Exception allowing throwing of a checked exception
*/
protected void setFactoryProperties(ComponentFactory factory, LinkedHashMap<String, String> remainingConfig) throws Exception {
if (factory instanceof Bean) {
Bean bean = (Bean) factory;
for (MetaProperty<?> mp : bean.metaBean().metaPropertyIterable()) {
String value = remainingConfig.remove(mp.name());
setProperty(bean, mp, value);
}
}
}