static EnumValue ofEnum(Type type, String constant) {
        return new EnumValueImpl(type, constant);
    }
Returns a new {@link EnumValue} with the specified constant selected.

@param type      the enum type
@param constant  the selected constant
@return          the boolean value
common-parent/codegen/src/main/java/com/speedment/common/codegen/model/Value.java