}
@POST
@Path("definitions/save") // not the best URI
public Response addOrUpdate(@Context UriInfo uriInfo, YieldCurveDefinitionDocument document) {
YieldCurveDefinitionDocument result = getInterpolatedYieldCurveDefinitionMaster().addOrUpdate(document);
URI createdUri = (new DataInterpolatedYieldCurveDefinitionResource()).uriVersion(uriInfo.getBaseUri(), result.getUniqueId());
return responseCreatedFudge(createdUri, result);
}