FileWriter writer = getResourceWriter( "target/schema",
FileWriter writer = getResourceWriter( basedir + "/target/schema",
    protected void generateObjectClassProducer( BootstrapSchema schema )        throws Exception    {        ObjectClassLiteral[] objectClasses =            getObjectClasses( schema.getSchemaName() + ".schema" );        VelocityContext context = new VelocityContext();        context.put( "package", schema.getPackageName() );        context.put( "classname",            schema.getUnqualifiedClassName( ProducerTypeEnum.OBJECT_CLASS_PRODUCER ) );        context.put( "schema", schema.getSchemaName() );        context.put( "owner", schema.getOwner() ) ;        context.put( "schemaDepCount", new Integer( schema.getDependencies().length ) );        context.put( "schemaDeps", new String[] { "dep1", "dep2" }  ) ;        context.put( "objectClasses", objectClasses );        FileReader template = getResourceReader( "ObjectClasses.template" );        FileWriter writer = getResourceWriter( "target/schema",            schema.getPackageName(),            schema.getUnqualifiedClassName( ProducerTypeEnum.OBJECT_CLASS_PRODUCER ) );        Velocity.init();        Velocity.evaluate( context, writer, "LOG", template );        writer.flush();        writer.close();    }