public static void addCastString(OgnlContext context, String cast)
    {
        String value = (String) context.get(PRE_CAST);

        if (value != null)
            value = cast + value;
        else
            value = cast;

        context.put(PRE_CAST, value);
    }
public static void addCastString(OgnlContext context, String cast)
    {
        String value = (String) context.get(PRE_CAST);

        if (value != null)
            value = cast + value;
        else
            value = cast;

        context.put(PRE_CAST, value);
    }
public static void addCastString ( OgnlContext context , String cast ) { String value = ( String ) context . get ( PRE_CAST ) ; if ( value != null ) value = cast + value ; else value = cast ; context . put ( PRE_CAST , value ) ; }
Used by {@link #castExpression(ognl.OgnlContext, ognl.Node, String)} to store the cast java
source string in to the current {@link OgnlContext}. This will either add to the existing
string present if it already exists or create a new instance and store it using the static key
of {@link #PRE_CAST}.

@param context
The current execution context.
@param cast
The java source string to store in to the context.
Used by { @link #castExpression ( ognl . OgnlContext ognl . Node String ) } to store the cast java source string in to the current { @link OgnlContext } . This will either add to the existing string present if it already exists or create a new instance and store it using the static key of { @link #PRE_CAST } .