return location;
} else {
logger.warn(
"Original location is not defined in the model ");
throw new RpException("document.location.missing");
}
} catch (FileNotFoundException e) {
logger.warn(
"Error in reading the model stored in the path " +
modelPath);
throw new RpException("document.model.read.error",
new Object[] { modelPath });
}
}
} else {
logger.warn("No model stored in the system path ");
throw new RpException("document.model.missing",
new Object[] { MODEL_NAME });
}
} else {
logger.warn("The category path doesn't exist");
throw new RpException("category.path.error", new Object[] { path });
}
}