code: @SuppressWarnings("unchecked")
  	public static <T extends IKeyEnum> T getValue(final int pKey, final Class<T> pClass) {
  		for (IKeyEnum val : pClass.getEnumConstants()) {
  			if (val.getKey() == pKey) {
  				return (T) val;
  			}
  		}
  		LOGGER.error("Unknow value:" + pKey + " for Enum:" + pClass.getName());
  		return null;
  	}
docs: Get the value of and enum from his key
  
  @param pKey
  key to find
  @param pClass
  Enum class
  @return Enum instance of the specified key or null otherwise