JAVA CONFIGURATION