private IBuilder CreateCachedBuilder(IBuilder builder, IBuilderStatistics statistics) { if (builder.GetType().GetCustomAttributes(typeof (ShouldNotCacheAttribute), true).Any()) { return builder; } else { return cachedBuilderFactory.CreateCachedBuilder(CreateMonitoredBuilder(builder, statistics)); } }