}
private void generateJavaSource( String filename, File dir, String packageName,
boolean createPackageDir) throws Exception
{
XSDToJavaIntf xsdJava = new XSDToJava();
xsdJava.setTypeMapping(new LiteralTypeMapping());
xsdJava.generateJavaSource(filename, dir, packageName, createPackageDir);
}