Changed the modtime cache model.
More work on java module.