class SimpleMergeRequestManager implements MergeRequestManager {

    @Override
    public void updateComment(Resource commentId, Comment comment) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            Optional<com.mobi.rdf.api.Value> description = comment.getProperty(vf.createIRI(_Thing.description_IRI));
            if (description.isPresent() && description.get().stringValue().length() > MAX_COMMENT_STRING_LENGTH) {
                throw new IllegalArgumentException("Comment string length must be less than " + MAX_COMMENT_STRING_LENGTH);
            }
            if (!description.isPresent() || StringUtils.isBlank(description.get().stringValue())) {
                throw new IllegalArgumentException("Comment string is required");
            }
            OffsetDateTime now = OffsetDateTime.now();
            comment.setProperty(vf.createLiteral(now), vf.createIRI(_Thing.modified_IRI));
            catalogUtils.validateResource(commentId, commentFactory.getTypeIRI(), conn);
            catalogUtils.updateObject(comment, conn);
        }
    }

}