ClassStructureBuilder<?> classBuilder = ClassBuilder.implement(RpcProxyLoader.class);
MethodBlockBuilder<?> loadProxies =
classBuilder.publicMethod(void.class, "loadProxies", Parameter.of(MessageBus.class, "bus", true));
MetaDataScanner scanner = ScannerSingleton.getOrCreateInstance();
for (Class<?> remote : scanner.getTypesAnnotatedWith(Remote.class)) {
if (remote.isInterface()) {
// create the remote proxy for this interface
ClassStructureBuilder<?> remoteProxy = new RpcProxyGenerator(remote).generate();
loadProxies.append(new InnerClass((BuildMetaClass) remoteProxy.getClassDefinition()));