private static void SetModuleRoles(ModuleInfoElement moduleInfo, ModuleInfo mi)
 {
     if (moduleInfo.Roles != null && moduleInfo.Roles.Length > 0)
         foreach (RoleElement role in moduleInfo.Roles)
             mi.AddRoles(role.Allow);
 }
 private static IModuleInfo[] CreateModuleInfos(SolutionProfileElement solutionProfile)
 {
     ModuleInfo[] mInfos = new ModuleInfo[solutionProfile.Modules.Length];
     for (int i = 0; i < solutionProfile.Modules.Length; i++)
     {
         ModuleInfoElement xsdModule = solutionProfile.Modules[i];
         ModuleInfo mInfo = new ModuleInfo(xsdModule.AssemblyFile);
         mInfo.SetUpdateLocation(xsdModule.UpdateLocation);
         if (xsdModule.Roles != null && xsdModule.Roles.Length > 0)
         {
             foreach (RoleElement role in xsdModule.Roles)
             {
                 mInfo.AddRoles(role.Allow);
             }
         }
         mInfos[i] = mInfo;
     }
     return mInfos;
 }