final String pathToJavaClass = absolutePath.substring(
absolutePath.indexOf(resourcePath) + resourcePath.length() + 1)
.replace(fileName, "");
final String packageName = pathToJavaClass.replace(File.separator, ".")
+ className;
SchemaGenArguments arguments = new SchemaGenArguments() {
public URL getSchemaUrl() {
try {
return file.toURI().toURL();
} catch (MalformedURLException e) {