code: static AttributePropertiesImpl setEnumLabelProperty(final Class<?> type, final AttributePropertiesImpl props)
              throws DevFailed {
          // if is is an enum set enum values in properties
          if (AttributeTangoType.getTypeFromClass(type).equals(AttributeTangoType.DEVENUM)) {
              // final Class<Enum<?>> enumType = (Class<Enum<?>>) field.getType();
              final Object[] enumValues = type.getEnumConstants();
              final String[] enumLabels = new String[enumValues.length];
              for (int i = 0; i < enumLabels.length; i++) {
                  enumLabels[i] = enumValues[i].toString();
              }
              props.setEnumLabels(enumLabels, false);
          }
          return props;
      }
docs: Set enum label for Enum types
  
  @param type
  @param props
  @throws DevFailed