public static void close(RProjectDetails details, ProjectCloseOptions options, RClient client, String uri)
        {
            StringBuilder data = new StringBuilder();

            //create the input String
            data.Append(Constants.FORMAT_JSON);
            data.Append("&project=" + HttpUtility.UrlEncode(details.id));
            if (!(options == null))
            {
                if (!(options.dropOptions == null))
                {
                    data.Append("&dropworkspace=" + options.dropOptions.dropWorkspace.ToString());
                    data.Append("&dropdirectory=" + options.dropOptions.dropDirectory.ToString());
                    data.Append("&drophistory=" + options.dropOptions.dropHistory.ToString());
                }
                data.Append("&flushhistory=" + options.flushHistory.ToString());
                data.Append("&disableautosave=" + options.disableAutosave.ToString());
                data.Append("&projectcookie=" + options.cookie);
            }

            //call the server
            JSONResponse jresponse = HTTPUtilities.callRESTPost(uri, data.ToString(), ref client);
        }
 /// <summary>
 /// Closes the project
 /// </summary>
 /// <param name="options">ProjectCloseOptions object describing additional actions upon closing the project</param>
 /// <remarks></remarks>
 public void close(ProjectCloseOptions options)
 {
     RProjectBaseImpl.close(m_projectDetails, options, m_client, Constants.RPROJECTCLOSE);
 }