public Object getEditedValue(Object value)
    {
        if (value instanceof JeksExpression)
            return ((JeksExpression) value).getAestheticDefinition();
        else if (value instanceof Number)
            return numberParser.format(value);
        else if (value instanceof Date)
        {
            Calendar calendar = Calendar.getInstance();
            calendar.setTime((Date) value);
            if (calendar.get(Calendar.HOUR_OF_DAY) == 0
                    && calendar.get(Calendar.MINUTE) == 0
                    && calendar.get(Calendar.SECOND) == 0)
                return dateParser.format(value);
            else
                return dateTimeParser.format(value);
        } else if (value instanceof Boolean)
            return ((Boolean) value).booleanValue() ? ((JeksExpressionSyntax) getSyntax())
                    .getConstant(Syntax.CONSTANT_TRUE)
                    : ((JeksExpressionSyntax) getSyntax())
                            .getConstant(Syntax.CONSTANT_FALSE);
        else
            return value;
    }