CJ: java class generator pattern