{
    String platformResourcePath = uri.toPlatformString(true);
    if (workspaceRoot != null)
    {
      return WorkbenchHelper.attributes(platformResourcePath, options);
    }
    else
    {
      URI resolvedLocation = EcorePlugin.resolvePlatformResourcePath(platformResourcePath);
      return resolvedLocation == null ? Collections.<String, Object>emptyMap() : getURIConverter(options).getAttributes(resolvedLocation, options);
    }
  }