RMI api based on annotations