compiler: java: catch IllegalArgumentException from checkNotEmpty in generated controllers