// parent class we need to know about this class, so the
// factory will also hang onto static projects for each
// persistence unit. Doing this is going to need careful
// cleanup thoughts though. Adding classes ok, but what
// about removing some?
MetadataLogger logger = new MetadataLogger(new ServerSession(new Project(new DatabaseLogin())));
staticFactory = new MetadataMirrorFactory(logger, Thread.currentThread().getContextClassLoader());
processingEnv.getMessager().printMessage(Kind.NOTE, "Creating static metadata factory ...");
}
factory = staticFactory;
} else {
if (nonStaticFactory == null) {
MetadataLogger logger = new MetadataLogger(new ServerSession(new Project(new DatabaseLogin())));
nonStaticFactory = new MetadataMirrorFactory(logger, Thread.currentThread().getContextClassLoader());
processingEnv.getMessager().printMessage(Kind.NOTE, "Creating non-static metadata factory ...");
}
factory = nonStaticFactory;