// do nothing if period not found
const size_t periodFound = version.find(Constants::SAM_PERIOD);
if ( periodFound != std::string::npos ) {
// store major version if non-empty and contains only digits
const std::string& majorVersion = version.substr(0, periodFound);
// do nothing if period not found
const size_t periodFound = version.find(Constants::SAM_PERIOD);
if ( periodFound != std::string::npos ) {
// store major version if non-empty and contains only digits
const std::string& majorVersion = version.substr(0, periodFound);