HhStartDate finishDate, String chargeScript,
String importerProperties, String state, Long rateScriptId,
String rateScript) throws HttpException {
HhdcContract existing = findHhdcContract(name);
if (existing != null) {
throw new UserException(
"There's already a HHDC contract with the name " + name);
}
HhdcContract contract = new HhdcContract(id, participant, name,
startDate, finishDate, chargeScript, importerProperties, state);
Hiber.session().save(contract);