public static Object[] convertParameters(Object[] parms) {

        if (parms == null)
            return null;

        if (parms.length == 0)
            return parms;

        // create a new array to hold the output
        Object[] newParms = new Object[parms.length];

        // convert empty strings to ""
        for (int i = 0; i < parms.length; i++) {
            if (parms[i] instanceof String && ((String) parms[i]).equals(svEmptyString)) {
                newParms[i] = svEmptyStringReplacement;
            } else {
                newParms[i] = parms[i];
            }
        }

        return newParms;
    }
public static Object [ ] convertParameters ( Object [ ] parms ) { if ( parms == null ) return null ; if ( parms . length == 0 ) return parms ; Object [ ] newParms = new Object [ parms . length ] ; for ( int i = 0 ; i < parms . length ; i ++ ) { if ( parms [ i ] instanceof String && ( ( String ) parms [ i ] ) . equals ( svEmptyString ) ) { newParms [ i ] = svEmptyStringReplacement ; } else { newParms [ i ] = parms [ i ] ; } } return newParms ; }
Returns an array of parameters that matches the input parms except:
Parameters that are empty strings are converted to </Q></Q> (2 double quotes)

@param parms
@return Object[]