Update JAVA converter and reference spectra example