public void RegisterCaps(UUID agentID, Caps caps)
        {
            //caps.RegisterHandler("GetTexture", new StreamHandler("GET", "/CAPS/" + capID, ProcessGetTexture));
            if (m_URL == "localhost")
            {
                UploadBakedTextureHandler avatarhandler = new UploadBakedTextureHandler(
                    caps, m_scene.AssetService, m_persistBakedTextures);

                caps.RegisterHandler(
                    "UploadBakedTexture",
                    new RestStreamHandler(
                        "POST",
                        "/CAPS/" + caps.CapsObjectPath + m_uploadBakedTexturePath,
                        avatarhandler.UploadBakedTexture,
                        "UploadBakedTexture",
                        agentID.ToString()));
                
            }
            else
            {
                caps.RegisterHandler("UploadBakedTexture", m_URL);
            }
        }
        public void RegisterCaps(UUID agentID, Caps caps)
        {
            UploadBakedTextureHandler avatarhandler = new UploadBakedTextureHandler(
                caps, m_scene.AssetService, m_persistBakedTextures);

           
            
            caps.RegisterHandler(
                "UploadBakedTexture",
                new RestStreamHandler(
                    "POST",
                    "/CAPS/" + caps.CapsObjectPath + m_uploadBakedTexturePath,
                    avatarhandler.UploadBakedTexture,
                    "UploadBakedTexture",
                    agentID.ToString()));

           
            

        }