validity = source.getValidity();
    public CocoonSource(Source source, boolean checkXQEncoding) {        inputSource = source;        validity = source.getValidity();        checkEncoding = checkXQEncoding;    }