What happens instead? And why are you simply throwing that Exception instead of catching it like you should be?