private string ConvertToPath(String resource) { string path = resource.Replace('.', '/'); if (path[0] != '/') { path = string.Format("/{0}", path); } return path; }