extracted an interface from UserInterface to generate an RMI UserInterface.