This code example shows how to use the following methods:getServiceInterface

return serviceProxy;
}
@Override
public Class<?> getObjectType() {
return getServiceInterface();
}
@Override
public boolean isSingleton() {
return true;
}
@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
// now, unless i miss my mark, the interface of this proxy and the proxy we've created locally are the same,
// so it should be a simple matter to forward the MethodInvocation on to the local client
Method method = invocation.getMethod();
if (method.getName().equals("toString")) {