Add license header to all java source files

JIRA:
CG-55