{
for (Iterator iterator = modules.iterator(); iterator.hasNext();)
{
ModuleServiceMetaData moduleService = (ModuleServiceMetaData)iterator.next();
ModuleMetaData module = moduleService.getModuleData();
String entryName = "portal:identity=Module,type=" + module.getType();
AbstractBeanMetaData moduleBMD = new AbstractBeanMetaData(entryName,
module.getClassName());
AbstractPropertyMetaData propertyBMD = new AbstractPropertyMetaData("identityContext", identityContext);
moduleBMD.addProperty(propertyBMD);
propertyBMD = new AbstractPropertyMetaData("jndiBinder", getServiceJNDIBinder());
moduleBMD.addProperty(propertyBMD);
//initiate parameters from <config>
for (Iterator iterator1 = moduleService.getModuleOptions().keySet().iterator(); iterator1.hasNext();)
{
String propertyKey = (String)iterator1.next();
String propertyValue = (String)moduleService.getModuleOptions().get(propertyKey);
//if (log.isDebugEnabled()) log.debug("adding parameter: " + propertyKey + " ; " + propertyValue);
propertyBMD = new AbstractPropertyMetaData(propertyKey, propertyValue);
moduleBMD.addProperty(propertyBMD);
}