/**
   * Method getFolderPath.
   *
   * @param id int
   * @return String
   * @see com.percussion.pso.restservice.support.IImportItemSystemInfo#getFolderPath(int)
   */
  public String getFolderPath(int id) {
    initServices();
    log.debug("Getting folder path");
    try {
      List<PSFolder> folderList =
          cws.loadFolders(Collections.singletonList(gmgr.makeGuid(new PSLocator(id, -1))));
      log.debug("Got folder Path");
      return folderList.get(0).getFolderPath();
    } catch (PSErrorResultsException e) {
      log.error("Cannot get folder path for foder id " + id);
    }

    return null;
  }
 /** Method initServices. */
 private static void initServices() {
   if (gmgr == null) {
     gmgr = PSGuidManagerLocator.getGuidMgr();
     cws = PSContentWsLocator.getContentWebservice();
     rolemgr = PSRoleMgrLocator.getBackEndRoleManager();
     sitemgr = PSSiteManagerLocator.getSiteManager();
     aService = PSAssemblyServiceLocator.getAssemblyService();
     wf = PSWorkflowServiceLocator.getWorkflowService();
     itemDefMgr = PSItemDefManager.getInstance();
     List<PSContentTypeSummary> ctypes = cws.loadContentTypes(null);
     for (PSContentTypeSummary type : ctypes) {
       contentTypeNameMap.put(type.getGuid().longValue(), type.getName());
     }
   }
 }