void resolveReferences()
        {
            final Proto proto = getProto();

            String enclosingNs = service.isNested() ?
                    service.parentMessage.getFullName() : proto.getPackageName();

            String fullArgName = (argPackage != null ? argPackage + '.' + argName : argName);
            if (!"void".equals(fullArgName))
            {
                Message argType = proto.findMessageReference(fullArgName, enclosingNs);
                if (argType == null)
                {
                    throw err("The message " + fullArgName + " is not defined",
                            proto);
                }

                this.argType = argType;
            }

            String fullReturnName = (retPackage != null ? retPackage + '.' + retName : retName);
            if (!"void".equals(fullReturnName))
            {
                Message returnType = proto.findMessageReference(fullReturnName, enclosingNs);
                if (returnType == null)
                {
                    throw err("The message " + fullReturnName + " is not defined",
                            proto);
                }

                this.returnType = returnType;
            }

            if (!standardOptions.isEmpty())
                proto.references.add(new ConfiguredReference(standardOptions, extraOptions, proto.getPackageName()));
        }
Represents a service defined in the proto (for generating rpc services).

@author David Yu
@created Jun 18, 2010
protostuff-parser/src/main/java/io/protostuff/parser/Service.java