further work on ehCache factory.