codegenJava: lift out java backend

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>