code: public static IssueType getType(String typename) {
          IssueType result = null;
          for (IssueType type : new IssueTypeJpaController(DataBaseManager
                  .getEntityManagerFactory()).findIssueTypeEntities()) {
              if (type.getTypeName().equals(typename)) {
                  result = type;
                  break;
              }
          }
          return result;
      }
docs: Get an Issue Type by name.
  
  @param typename name to search for
  @return Issue Type for the specified name or null if not found.