Towards a Smart Compilation Manager for Java