public static boolean isConfigTrue ( GrailsApplication application , String propertyName ) { return application . getConfig ( ) . getProperty ( propertyName , Boolean . class , false ) ; }
Checks if a Config parameter is true or a System property with the same name is true