title: Unable to create folder in repositry through CMIS
body: <p>I am new to this and trying to create folder in repositry, but it is showing some exception.Help me out wtih this thanks in advance.</p>
  
  <p>Here Is my code</p>
  
  <pre><code>SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
      Map&lt;String, String&gt; parameter = new HashMap&lt;String, String&gt;();
  
      // ECM user credentials
      parameter.put(SessionParameter.USER, "User");
      parameter.put(SessionParameter.PASSWORD, "password");
  
              parameter.put(SessionParameter.ATOMPUB_URL, "URL");
      parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
  
      // Get a list of repositories retrieved by the atompub CMIS endpoint (for Alfresco there is only one element)
      List&lt;Repository&gt; repositories = sessionFactory.getRepositories(parameter);
  
      // Create CMIS session to the repository
      Session session = repositories.get(0).createSession();
      System.out.println("Root Folder Name: "+session.getRepositoryInfo().getRootFolderId());
      Folder subFolder = null;
  
      Folder parentFolder = session.getRootFolder();
      try {
        subFolder = (Folder) session.getObjectByPath(parentFolder.getPath() + "/" + "folderName");
        System.out.println("Folder already existed!");
      } catch (CmisObjectNotFoundException onfe) {
        Map props = new HashMap();
        props.put("cmis:objectTypeId",  "cmis:folder");
        props.put("cmis:name", "folderName");
        subFolder = parentFolder.createFolder(props);
        String subFolderId = subFolder.getId();
        System.out.println("Created new folder: " + subFolderId);
      }
  </code></pre>
  
  <p>Getting This error-----
  Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Conflict
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:482)
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)
      at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:158)
      at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:814)
      at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:136)
      at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:479)
      at com.reva.test.main(test.java:55)</p>