Fixed config files in examples. Added throwing ProvisioningException in case provisioning doesn't succeed