Refactoring --> Changed InvalidDataException to ActiveclassException