private static void toSlime(IntRange range, Cursor rangeObject) {
        range.from().ifPresent(from -> rangeObject.setLong("from", range.from().getAsInt()));
        range.to().ifPresent(to -> rangeObject.setLong("to", range.to().getAsInt()));
    }
Serializes application information for nodes/v2/application responses

@author bratseth
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/ApplicationSerializer.java