Unbreaking shitty old java code