Example of proxy with RMI