code: public static String getStaticResourceUri(String resourceName, String versionInfo) {
  
          resourceName = CmsStaticResourceHandler.removeStaticResourcePrefix(resourceName);
          String uri = CmsStringUtil.joinPaths(OpenCms.getSystemInfo().getStaticResourceContext(), resourceName);
          if (versionInfo != null) {
              uri += "?v=" + versionInfo;
          }
          return uri;
      }
docs: Returns the URI to static resources served from the class path.<p>
  
  @param resourceName the resource name
  @param versionInfo add an additional version info parameter to avoid browser caching issues
  
  @return the URI