String domainAllocFullName = args[0];  System.arraycopy(args, 1, argsToDML, 3, args.length - 1);  CompilerArgs compArgs = new CompilerArgs(argsToDML); DomainModel domainModel = DmlCompiler.getDomainModel(compArgs);  AddOJBConstructors loader = new AddOJBConstructors(domainModel);
AddOJBConstructors loader = new AddOJBConstructors(domainModel);
    public static void main (final String args[]) throws Exception {        if (args.length < 2) {            System.err.println("Usage: AddOJBConstructors <DomainAllocator classFullName> <dml file 1> ... <dml file n>");        }        String[] argsToDML = new String[args.length + 3 - 1];        argsToDML[0] = "-d";        argsToDML[1] = "/tmp";        argsToDML[2] = "-f";        String domainAllocFullName = args[0];        System.arraycopy(args, 1, argsToDML, 3, args.length - 1);        CompilerArgs compArgs = new CompilerArgs(argsToDML);        DomainModel domainModel = DmlCompiler.getDomainModel(compArgs);        AddOJBConstructors loader = new AddOJBConstructors(domainModel);                for (Iterator iter = domainModel.getClasses(); iter.hasNext();) {            loader.loadClass(((DomainClass)iter.next()).getFullName());        }        dumpDomainAllocatorClass(domainAllocFullName, domainModel);    }