improve configuration process in Java EE