// check to see if it exists
KamInfo kamInfo = loadKAMInfo(kamName, filePath, cfg);
// create a kam catalog entry if it does not exist
final KamDbObject kamDb;
if (kamInfo == null) {
kamDb = new KamDbObject(null, kamName, kamDescription,
new Date(lastCompiled), null);
} else {
if (!noPreserve) {
// FIXME Hack to throw noPreserve check error to be processed by the calling CLI
throw new IllegalStateException();
}
kamDb = new KamDbObject(kamInfo.getId(), kamName, kamDescription,
new Date(lastCompiled), kamInfo.getSchemaName());
}
final String kamSchema;
try {