class RestUtils {

    public static IRI createIRI(String requestId, ValueFactory vf) {
        try {
            return vf.createIRI(requestId);
        } catch (IllegalArgumentException ex) {
            throw ErrorUtils.sendError(ex, ex.getMessage(), Response.Status.BAD_REQUEST);
        }
    }

}