- try {
- return StmtContextUtils.parseIdentifier(ctx, value);
- } catch (SourceException e) {
- // FIXME: YANGTOOLS-867: remove this workaround
- final QName ret;
- try {
- ret = StmtContextUtils.qnameFromArgument(ctx, value);
- } catch (RuntimeException re) {
- // Lenient parsing failed, report the original exception
- LOG.debug("Lenient identity parsing failed", re);
- throw e;
- }
-
- LOG.warn("Worked around illegal identity argument '{}' using lenient parsing", value, e);
- return ret;
- }