fix Java Config