OPENAM-7077 Updated license header
OPENAM-7077 Added null check loking for existing schemas that didn't contain sub-schemas
AME-6796 CR-6888 move upgrade code out of core to its own module