spliting java class generating code in another project