@@ -0,0 +1,787 @@
+package com.worldofbooks.autoconfigure.spring.environment;%0A%0Aimport org.springframework.beans.BeansException;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.context.ApplicationContextAware;%0A%0Aimport java.util.Arrays;%0A%0Apublic class EnvironmentUtils implements ApplicationContextAware %7B%0A%0A    private static ApplicationContext applicationContext;%0A%0A    private EnvironmentUtils() %7B%0A    %7D%0A%0A    @Override%0A    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException %7B%0A        EnvironmentUtils.applicationContext = applicationContext;%0A    %7D%0A%0A    public static boolean isProduction() %7B%0A        return Arrays%0A            .asList(applicationContext.getEnvironment().getActiveProfiles())%0A            .contains(%22prod%22);%0A    %7D%0A%7D%0A

Add an environment utility.