added code for rmi repository