code: private static String getResource(Bundle myBundle, String resourcePath) {
          if (myBundle == null)
              return null;
          String bundleShortDescription = getBundleDescription(myBundle);
          StringBuilder responseString = new StringBuilder();
          URL bundleResource = myBundle.getResource(resourcePath);
          if (bundleResource != null) {
              BufferedReader br = null;
              try { // read the requested resource from the bundle
                  br = new BufferedReader(new InputStreamReader(bundleResource.openConnection().getInputStream(), "UTF-8"));
                  while (br.ready()) {
                      responseString.append(br.readLine());
                  }
                  br.close();
              } catch (Exception e) { // shouldn't happen
                  if (OpenAPIUtils.isEventEnabled(tc)) {
                      Tr.event(tc, "Exception trying to read resource at " + resourcePath + " from bundle " + bundleShortDescription);
                  }
              }
  
          } else {
              if (OpenAPIUtils.isEventEnabled(tc)) {
                  Tr.event(tc, "Unexpected error getting resource from WAB bundle.");
              }
          }
          return responseString.toString();
      }
docs: Return as a string the contents of a file in the bundle.