add java-based configuration