Fix auto-generated Javapredict code to accomodate non-continugous group splits