externalized and corrected Java configuraiton