Why did you replace the exceptions with assertions (here and several more times)?