Should this be javaVal? Maybe construct this earlier where javaVal is computed.