simple adapter for doing Java-RMI via Json