Removed old code in TypeDefinition looking for getClassDefinition, also fixed regular expression in ClassResolver