private void InitialiseModules(IEnumerable <Type> types)
        {
            if (Modules.IsPristine) //If the resolver hasn't been explicitly configured do the default stuff
            {
                Modules.AddDefaultModules();
            }

            if (CodeFirstManager.Current.Features.UseBuiltInUmbracoDataTypes)
            {
                //pre-register the built-in datatypes
                var builtInTypes = typeof(CodeFirstManager).Assembly.GetTypes().Where(x => x.GetCustomAttribute <BuiltInDataTypeAttribute>(false) != null);
                var allTypes     = types.Concat(builtInTypes).ToList();
                Modules.Initialise(allTypes);
            }
            else
            {
                Modules.Initialise(types);
            }
        }