This private function modifies theBarrel and theEndcap so needs to be non-const now. It is only ever called from the non-const init function so no problems.