Fixed #6 - Changed deprecated TypeDefinitionException to RuntimeException.