The question we are trying to track is whether DBBPool.java exists and is newer than DBBPool.java.template.
Instead, we were generating a .flagfile at about the same time as we generate DBBPool.java and testing whether .flagfile is up to date. This was a little confusing because you could delete DBBPool.java and not be able to regenerate it because you forgot to delete .flagfile. I could not see a reason for this added complication.