Descriptor contentType = registry.find(getTypeName(typeUrl)); if (contentType == null) { throw new InvalidProtocolBufferException("Cannot resolve type: " + typeUrl);
Descriptor type = registry.find(typeName); if (type == null) { throw new InvalidProtocolBufferException("Cannot find type for url: " + typeUrl);