// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DATASETS = "/datasets/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DICOM_STORES = "/dicomStores/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DICOM_WEB = "/dicomWeb";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String INSTANCES = "/instances/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String LOCATIONS = "/locations/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String PROJECTS = "/projects/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String SERIES = "/series/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String STUDIES = "/studies/";
// 
// Path: src/main/java/com/google/dicomwebfuse/exception/DicomFuseException.java
// public class DicomFuseException extends Exception {
// 
//   private int statusCode;
// 
//   public DicomFuseException(String message) {
//     super(message);
//   }
// 
//   public DicomFuseException(String message, Exception e) {
//     super(message, e);
//   }
// 
//   public DicomFuseException(Exception e) {
//     super(e);
//   }
// 
//   public DicomFuseException(String message, int statusCode) {
//     super(message);
//     this.statusCode = statusCode;
//   }
// 
//   public int getStatusCode() {
//     return statusCode;
//   }
// }


import static com.google.dicomwebfuse.dao.Constants.DATASETS;
import static com.google.dicomwebfuse.dao.Constants.DICOM_STORES;
import static com.google.dicomwebfuse.dao.Constants.DICOM_WEB;
import static com.google.dicomwebfuse.dao.Constants.INSTANCES;
import static com.google.dicomwebfuse.dao.Constants.LOCATIONS;
import static com.google.dicomwebfuse.dao.Constants.PROJECTS;
import static com.google.dicomwebfuse.dao.Constants.SERIES;
import static com.google.dicomwebfuse.dao.Constants.STUDIES;
import com.google.dicomwebfuse.exception.DicomFuseException;
    }
    String project = queryBuilder.getCloudConf().getProject();
    if (project == null) {
      throw new DicomFuseException("Project must not be null!");
    }
    String location = queryBuilder.getCloudConf().getLocation();
    if (location == null) {
      throw new DicomFuseException("Location must not be null!");
    }
    String dataset = queryBuilder.getCloudConf().getDataSet();
    if (dataset == null) {
      throw new DicomFuseException("Dataset must not be null!");
    }
    String dicomStoreId = queryBuilder.getDicomStoreId();
    if (dicomStoreId == null) {
      throw new DicomFuseException("Dicom store must not be null!");
    }
    String studyId = queryBuilder.getStudyId();
    if (studyId == null) {
      throw new DicomFuseException("Study must not be null!");
    }
    String seriesId = queryBuilder.getSeriesId();
    if (seriesId == null) {
      throw new DicomFuseException("Series must not be null!");
    }
    String instanceId = queryBuilder.getInstanceId();
    if (instanceId == null) {
      throw new DicomFuseException("Instance must not be null!");
    }
    return stage + PROJECTS + project + LOCATIONS + location + DATASETS + dataset + DICOM_STORES +
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DATASETS = "/datasets/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DICOM_STORES = "/dicomStores/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String DICOM_WEB = "/dicomWeb";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String INSTANCES = "/instances/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String LOCATIONS = "/locations/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String PROJECTS = "/projects/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String SERIES = "/series/";
// 
// Path: src/main/java/com/google/dicomwebfuse/dao/Constants.java
// public static final String STUDIES = "/studies/";
// 
// Path: src/main/java/com/google/dicomwebfuse/exception/DicomFuseException.java
// public class DicomFuseException extends Exception {
// 
//   private int statusCode;
// 
//   public DicomFuseException(String message) {
//     super(message);
//   }
// 
//   public DicomFuseException(String message, Exception e) {
//     super(message, e);
//   }
// 
//   public DicomFuseException(Exception e) {
//     super(e);
//   }
// 
//   public DicomFuseException(String message, int statusCode) {
//     super(message);
//     this.statusCode = statusCode;
//   }
// 
//   public int getStatusCode() {
//     return statusCode;
//   }
// }


// Path: src/main/java/com/google/dicomwebfuse/dao/spec/InstancePathBuilder.java
import static com.google.dicomwebfuse.dao.Constants.DATASETS;
import static com.google.dicomwebfuse.dao.Constants.DICOM_STORES;
import static com.google.dicomwebfuse.dao.Constants.DICOM_WEB;
import static com.google.dicomwebfuse.dao.Constants.INSTANCES;
import static com.google.dicomwebfuse.dao.Constants.LOCATIONS;
import static com.google.dicomwebfuse.dao.Constants.PROJECTS;
import static com.google.dicomwebfuse.dao.Constants.SERIES;
import static com.google.dicomwebfuse.dao.Constants.STUDIES;
import com.google.dicomwebfuse.exception.DicomFuseException;

    }
    String project = queryBuilder.getCloudConf().getProject();
    if (project == null) {
      throw new DicomFuseException("Project must not be null!");
    }
    String location = queryBuilder.getCloudConf().getLocation();
    if (location == null) {
      throw new DicomFuseException("Location must not be null!");
    }
    String dataset = queryBuilder.getCloudConf().getDataSet();
    if (dataset == null) {
      throw new DicomFuseException("Dataset must not be null!");
    }
    String dicomStoreId = queryBuilder.getDicomStoreId();
    if (dicomStoreId == null) {
      throw new DicomFuseException("Dicom store must not be null!");
    }
    String studyId = queryBuilder.getStudyId();
    if (studyId == null) {
      throw new DicomFuseException("Study must not be null!");
    }
    String seriesId = queryBuilder.getSeriesId();
    if (seriesId == null) {
      throw new DicomFuseException("Series must not be null!");
    }
    String instanceId = queryBuilder.getInstanceId();
    if (instanceId == null) {
      throw new DicomFuseException("Instance must not be null!");
    }
    return stage + PROJECTS + project + LOCATIONS + location + DATASETS + dataset + DICOM_STORES +
        dicomStoreId + DICOM_WEB + STUDIES + studyId + SERIES + seriesId + INSTANCES +