Proxy defined inside in web application