@SuppressWarnings("unchecked")
 public int getDownloadSize() {
   int res = 0;
   assert container != null || containerCustom != null
       : "OperationContainer found when asking for download size.";
   Set<OperationInfo> infos = new HashSet<OperationInfo>();
   infos.addAll(container.listAll());
   infos.addAll(containerCustom.listAll());
   Set<UpdateElement> elements = new HashSet<UpdateElement>();
   for (OperationInfo info : infos) {
     elements.add(info.getUpdateElement());
     elements.addAll(info.getRequiredElements());
   }
   for (UpdateElement el : elements) {
     res += el.getDownloadSize();
   }
   return res;
 }