Constructor cons = clas.getConstructor(new Class[] { prior.getClass() });
try {
return cons.newInstance(new Object[] { prior });
} catch (IllegalArgumentException e) { /* ignore failure */
} catch (InvocationTargetException e) {
vctx.addWarning("Failed passing existing name converter to constructor for class " +
cname + ": " + e.getMessage(), new ProblemLocation(ctx));
}
} catch (SecurityException e) { /* ignore failure */
} catch (NoSuchMethodException e) { /* ignore failure */ }