Giant Javan earthworm?

I came across this huge worm on a path through the forest at the back of Cibodas Botanical Gardens on the slopes of Mount Gede, a volcano in Java, Indonesia. At first I thought it was a slow-worm (reptile), but I gradually realised it was a giant earthworm. It was writhing about with one end…