/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_parser_set_default_sac_handler(CRParser *a_this)
/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_parser_set_default_sac_handler(CRParser *a_this)
{
        CRDocHandler *default_sac_handler = NULL;
        enum CRStatus status = CR_ERROR;
        g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
        default_sac_handler = cr_doc_handler_new ();
        cr_doc_handler_set_default_sac_handler (default_sac_handler);
        status = cr_parser_set_sac_handler (a_this, default_sac_handler);
        if (status != CR_OK) {
                cr_doc_handler_destroy (default_sac_handler);
                default_sac_handler = NULL;
        }
        return status;
}