add java code before adding licenced head