code: public static IdGenerator getIdGenerator(GenerationType generationType, String name,
  			List<IdGenerator> idGeneratorList) {
  		// fixed idGenerators
  		IdGenerator idGen = getIdGeneratorByType(generationType);
  		if (idGen != null)
  			return idGen;
  		if (StrUtils.isEmpty(name))
  			return null;
  		for (IdGenerator idGenerator : idGeneratorList) {
  			if (generationType != null && name.equalsIgnoreCase(idGenerator.getIdGenName()))
  				return idGenerator;
  			if ((generationType == null || GenerationType.OTHER.equals(generationType))
  					&& name.equalsIgnoreCase(idGenerator.getIdGenName()))
  				return idGenerator;
  		}
  		return null;
  	}
docs: Get a IdGenerator by type, if not found, search by name