public Object convertForSerialization(Object value) {
        Object resultOfConverting = value;

        if (value != null) {
            if (value.getClass().isEnum()) {
                resultOfConverting = value.toString();
            }
        }

        return resultOfConverting;
    }