code: public SoyMsgBundle createFromResource(URL inputResource) throws IOException {
  
      try {
        String inputFileContent = Resources.asCharSource(inputResource, UTF_8).read();
        return msgPlugin.parseTranslatedMsgsFile(inputFileContent);
  
      } catch (SoyMsgException sme) {
        sme.setFileOrResourceName(inputResource.toString());
        throw sme;
      }
    }
docs: Reads a translated messages resource and creates a SoyMsgBundle.
  
  @param inputResource The resource to read from.
  @return The message bundle created from the messages resource.
  @throws IOException If there's an error while accessing the resource.
  @throws SoyMsgException If there's an error while processing the messages.