Type GetValidatedType(Type typeToRegister)
{
Type validatedType = null;
validatedType = GetGenericParameterType(typeToRegister, typeof (IValidateInput<>));
return validatedType ?? GetGenericParameterType(typeToRegister, typeof (IValidateBusinessRules<>));
}