+add java templates
>export files correctly
>adjust the template to use the correct animation segment constructor