private Class<?>[] createParamClassArray( JSONRPCRequest request ) 
	throws JSONException,
	       JSONRPCException {

	if( request.getParams() == null || request.getParams().isNull() )
	    return null;


	if( request.getParams().isArray() ) {

	    return this.createParamClassArrayFromJSONArray( request.getParams().asJSONArray() );

	} else if( request.getParams().isObject() ) {
	    
	    return this.createParamClassArrayFromJSONObject( request.getParams().asJSONObject() );

	} else {
	    throw createJSONRPCException( "params must be an array or an object." );	    
	}
    }