changing java files within main/groovy into groovy files.
This is for consistency and for development ease

Note I removed the "assert parent != null",
which seemed to have been unjustified anyway (Code does null checks)