Examples of how to use configurator in standalon app and servelet/Spring context