if (genModel != null) {
return URI.createURI(genModel);
} else {
String prefix;
try {
<BUG>prefix = new File(getXmiModelDirectory(grammar, getJavaModelDirectory(ctx))).getCanonicalPath() + File.separator
+ getModelName(grammar);
} catch (IOException e) {</BUG>
throw new WrappedException(e);
}

if (genModel != null) {
return URI.createURI(genModel);
} else {
String prefix;
try {
prefix = new File(getXmiModelDirectory(grammar, getJavaModelDirectory(ctx))).getCanonicalPath()
+ File.separator + getModelName(grammar);
} catch (IOException e) {
throw new WrappedException(e);
}
