public virtual IViewContent CreateContentForMimeType (string mimeType, Stream content)
		{
			StreamReader sr = new StreamReader (content);
			string text = sr.ReadToEnd ();
			sr.Close ();
			
			SourceEditorDisplayBindingWrapper w = new SourceEditorDisplayBindingWrapper ();
			w.LoadString (mimeType, text);
			return w;
		}	
        public virtual IViewContent CreateContentForLanguage(string language, string content, string new_file_name)
        {
            SourceEditorDisplayBindingWrapper w = new SourceEditorDisplayBindingWrapper ();

            switch (language.ToUpper ()) {
                case "C#":
                    language = "text/x-csharp";
                    break;
                case "JAVA":
                    language = "text/x-java";
                    break;
                //case language "VBNET":
                //	language = "text/x-vbnet";
                //	break;
                case "NEMERLE":
                    language = "text/x-nemerle";
                    break;
                default:
                    language = "text/plain";
                    break;
            }

            w.LoadString (language, sps.Parse (content));
            return w;
        }