{@inheritDoc}
try {
Class n2aMain = Class.forName("sun.tools.native2ascii.Main");
Class[] param = new Class[] {String[].class};
Method convert = n2aMain.getMethod("convert", param);
if (convert == null) {
throw new BuildException("Could not find convert() method in "
+ "sun.tools.native2ascii.Main");
}
Object o = n2aMain.newInstance();
return ((Boolean) convert.invoke(o,
new Object[] {cmd.getArguments()})
).booleanValue();
} catch (BuildException ex) {
//rethrow
throw ex;
} catch (Exception ex) {
//wrap
throw new BuildException("Error starting Sun's native2ascii: ", ex);
}