Changing dynamic proxy to proxy