Explain custom_java attribute and clean up style