private Double asDouble(Inspector field) {
        if (field.type() != Type.DOUBLE)
            throw new IllegalArgumentException("Expected a DOUBLE value, got a " + field.type());
        return field.asDouble();
    }
Returns the application in its current state (patch applied or not)
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/ApplicationPatcher.java