import org.lsst.ccs.description.groovy.CCSBuilder;
import org.lsst.ccs.subsystem.ocsbridge.sim.*;
import org.lsst.ccs.bootstrap.BootstrapResourceUtils;
import org.lsst.ccs.imagenaming.service.ImageNameService;

CCSBuilder builder = ["mcm"]

Properties props = BootstrapResourceUtils.getBootstrapSystemProperties()

builder.
    mcm (MCMSubsystem) {
       config (MCMConfig)
       imageNameService (ImageNameService,
          dbURL: props.getProperty("org.lsst.ccs.dbUrl", "jdbc:h2:mem:test;MODE=MYSQL"), 
          source: props.getProperty("org.lsst.ccs.mcm.camera", "MainCamera"),
          controller: "OCS"
      )
}

