Castlemaine 'XXXX' is to sponsor rugby league in the UK.