// Path: src/main/java/org/firepick/firebom/exception/ProxyResolutionException.java
// public class ProxyResolutionException extends RuntimeException {
//     public ProxyResolutionException(Exception e) {
//         super(e);
//     }
// 
//     public ProxyResolutionException(String message) {
//         super(message);
//     }
// 
//     public ProxyResolutionException(String message, Exception e) {
//         super(message, e);
//     }
// }


import org.firepick.firebom.exception.ProxyResolutionException;
import java.io.IOException;
import java.net.URL;
import java.util.regex.Pattern;
          setTitleCategory(phrase);
        }
      }
    }
    String price = PartFactory.getInstance().scrapeText(content, startPrice, endPrice);
    if (price != null) {
      setPackageCost(Double.parseDouble(price));
    }
    String unitCostStr = PartFactory.getInstance().scrapeText(content, startUnitCost, endUnitCost);
    if (unitCostStr != null) {
      try {
//                double unitCost = Double.parseDouble(unitCostStr);
//                long units = PartFactory.estimateQuantity(getPackageCost(), unitCost);
//                setPackageUnits((double) units);
      }
      catch (Exception e) {
        // ignore
      }
    }
    String[] urlTokens = getUrl().toString().split("/");
    String id;
    switch (urlTokens.length) {
      case 5:
        id = urlTokens[4];
        break;
      case 6:
      case 7:
        id = urlTokens[5];
        break;
      default:
// Path: src/main/java/org/firepick/firebom/exception/ProxyResolutionException.java
// public class ProxyResolutionException extends RuntimeException {
//     public ProxyResolutionException(Exception e) {
//         super(e);
//     }
// 
//     public ProxyResolutionException(String message) {
//         super(message);
//     }
// 
//     public ProxyResolutionException(String message, Exception e) {
//         super(message, e);
//     }
// }


// Path: src/main/java/org/firepick/firebom/part/AmazonPart.java
import org.firepick.firebom.exception.ProxyResolutionException;
import java.io.IOException;
import java.net.URL;
import java.util.regex.Pattern;

          setTitleCategory(phrase);
        }
      }
    }
    String price = PartFactory.getInstance().scrapeText(content, startPrice, endPrice);
    if (price != null) {
      setPackageCost(Double.parseDouble(price));
    }
    String unitCostStr = PartFactory.getInstance().scrapeText(content, startUnitCost, endUnitCost);
    if (unitCostStr != null) {
      try {
//                double unitCost = Double.parseDouble(unitCostStr);
//                long units = PartFactory.estimateQuantity(getPackageCost(), unitCost);
//                setPackageUnits((double) units);
      }
      catch (Exception e) {
        // ignore
      }
    }
    String[] urlTokens = getUrl().toString().split("/");
    String id;
    switch (urlTokens.length) {
      case 5:
        id = urlTokens[4];
        break;
      case 6:
      case 7:
        id = urlTokens[5];
        break;
      default:
        throw new ProxyResolutionException("Could not parse www.amazon.com url: " + getUrl());