methods in Groovy should always throw Exception, but for some reason IDEA doesn't like that, so be explicit so we can simply usage from Java