/// <summary>
 /// Get Assembly Data For RuntimeData
 /// </summary>
 /// <returns></returns>
 private static void GetAssemblyDataForRuntimeData(RuntimeData runtimeData, ComponentMetadata metadata)
 {
     if (null != metadata.Runtime.Items && metadata.Runtime.Items.Length > 0)
     {
         foreach (ImportInfo de in metadata.Runtime.Items)
         {
             AssemblyData dd = new AssemblyData();
             dd.AssemblyPatch = de.assembly;
             dd.IsWeb = de.isweb;
             runtimeData.SetAssembly(dd);
         }
     }
 }
 /// <summary>
 /// Get Dependency For RuntimeData
 /// </summary>
 /// <returns></returns>
 private static void GetDependencyForRuntimeData(RuntimeData runtimeData, ComponentMetadata metadata)
 {
     if (null != metadata.Runtime.Items1 && metadata.Runtime.Items1.Length > 0)
     {
         foreach (Dependency de in metadata.Runtime.Items1)
         {
             DependencyData dd = new DependencyData();
             dd.AssemblyName = de.AssemblyName;
             dd.BundleSymbolicName = de.BundleSymbolicName;
             runtimeData.AddDependency(dd);
         }
     }
 }
 /// <summary>
 /// Get Runtime Data For RuntimeData
 /// </summary>
 /// <returns></returns>
 private static RuntimeData GetRuntimeDataForRuntimeData(ComponentMetadata metadata)
 {
     RuntimeData result = new RuntimeData();
     GetDependencyForRuntimeData(result, metadata);
     GetAssemblyDataForRuntimeData(result, metadata);
     return result;
 }