Made getByKeyParts a public function