public ICreativeRenditionAsset createCreativeRenditionAssetForTranslation(
     String s, boolean flag) {
   CreativeRenditionAsset creativerenditionasset = new CreativeRenditionAsset(context);
   creativerenditionasset.name = s;
   if (flag) {
     primaryCreativeRenditionAsset = creativerenditionasset;
     return creativerenditionasset;
   } else {
     otherCreativeRenditionAssets.add(creativerenditionasset);
     return creativerenditionasset;
   }
 }
 public void parse(Element element) {
   NodeList nodelist = element.getChildNodes();
   creativeRenditionId = tryParseInt(element.getAttribute("creativeRenditionId"), 0);
   replicaId = tryParseInt(element.getAttribute("adReplicaId"), -1);
   setContentType(element.getAttribute("contentType"));
   setWrapperType(element.getAttribute("wrapperType"));
   setWrapperURL(element.getAttribute("wrapperUrl"));
   setPreference(tryParseInt(element.getAttribute("preference"), 0));
   setHeight(tryParseInt(element.getAttribute("height"), 0));
   setWidth(tryParseInt(element.getAttribute("width"), 0));
   setCreativeAPI(element.getAttribute("creativeApi"));
   int i = 0;
   while (i < nodelist.getLength()) {
     element = nodelist.item(i);
     if (element.getNodeType() == 1) {
       String s = element.getNodeName();
       logger.verbose((new StringBuilder()).append("parse(), name: ").append(s).toString());
       if (s.equals("parameters")) {
         parameters = parseParameters((Element) element);
       } else if (s.equals("asset")) {
         primaryCreativeRenditionAsset = new CreativeRenditionAsset(context);
         primaryCreativeRenditionAsset.parse((Element) element);
       } else if (s.equals("otherAssets")) {
         parseOtherAssets((Element) element);
       } else {
         logger.warn((new StringBuilder()).append("ignore node: ").append(s).toString());
       }
     }
     i++;
   }
 }