@Override
public void addRevision(String globalId, String schema, String version, Revision revision) throws RevisionIsNotValidException {
recordDAO.addOrReplaceRevisionInRepresentation(globalId, schema, version, revision);
}
@Override
<BUG>public RepresentationRevisionResponse getRepresentationRevision(String globalId, String schema, String revisionProviderId, String revisionName, Date revisionTimestamp)

throws RevisionNotExistsException {</BUG>
return recordDAO.getRepresentationRevision(globalId, schema, revisionProviderId, revisionName, revisionTimestamp);
}

@Override
public Record getRecord(String cloudId)
throws RecordNotExistsException {
Record record = null;
if (uis.existsCloudId(cloudId)) {
record = recordDAO.getRecord(cloudId);
if (record.getRepresentations().isEmpty()) {
throw new RecordNotExistsException(cloudId);
}
} else {
throw new RecordNotExistsException(cloudId);
}
return record;
}
