SourceValidity validity = inputSource.getValidity(); if (validity == null) return UNKNOWN;
    public int isValid(DBBroker broker) {        int valid = validity.isValid();        switch (valid) {            case SourceValidity.UNKNOWN:                return UNKNOWN;            case SourceValidity.VALID:                return VALID;            default:                return INVALID;        }    }