private static void validarCPF(String digits) throws ValidacaoException {
        try {
            boolean isvalid = false;

            if (Long.parseLong(digits) % 10 == 0) {
                isvalid = somaPonderadaCPF(digits) % 11 < 2;
            } else {
                isvalid = somaPonderadaCPF(digits) % 11 == 0;
            }
            if (!isvalid) {
                throw new ValidacaoException("CPF Inválido!");
            }
        } catch (Exception ex) {
            throw new ValidacaoException("Verifique: " + ex.getMessage() + "!");
        }
    }