/** 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());
     }
   }
 }
  /**
   * Method getItemDefinition.
   *
   * @param contentType String
   * @return PSItemDefinition
   * @throws PSInvalidContentTypeException
   * @see com.percussion.pso.restservice.support.IImportItemSystemInfo#getItemDefinition(String)
   */
  public PSItemDefinition getItemDefinition(String contentType)
      throws PSInvalidContentTypeException {

    initServices();
    return itemDefMgr.getItemDef(contentType, PSItemDefManager.COMMUNITY_ANY);
  }