Setting active profile during web application initialization.