Make ServerProperties bean conditional on being a webapp