Added throws declarations to get the build going again.