configVar .setName( paramName + "_" + parameter.getID( ) ); configVar.setValue( paramValue ); handle.addConfigVariable( configVar );
try { Object paramValueObj = ParameterValidationUtil .validate( parameter.getDataType( ), parameter.getPattern( ), paramValue, attrBean.getLocale( ) );  paramValue = ParameterValidationUtil .getDisplayValue( parameter.getDataType( ), parameter.getPattern( ), paramValueObj, ULocale.US );   configVar.setName( paramName + "_" + parameter.getID( ) ); configVar.setValue( paramValue ); handle.addConfigVariable( configVar ); } catch ( Exception err ) {  }
	protected void __execute( ) throws RemoteException	{		ViewerAttributeBean attrBean = (ViewerAttributeBean) context.getBean( );		assert attrBean != null;		try		{			// get design file name			String reportDesignName = attrBean.getReportDesignName( );			// get design config file name			String configFileName = reportDesignName.replaceFirst(					IBirtConstants.SUFFIX_DESIGN_FILE,					IBirtConstants.SUFFIX_DESIGN_CONFIG );			// Generate the session handle			SessionHandle sessionHandle = DesignEngine.newSession( ULocale.US );			File configFile = new File( configFileName );			// if config file existed, then delete it			if ( configFile != null && configFile.exists( )					&& configFile.isFile( ) )			{				configFile.delete( );			}			// create a new config file			ReportDesignHandle handle = sessionHandle.createDesign( );			// get parameters from operation			Oprand[] op = this.operation.getOprand( );			if ( op != null )			{				for ( int i = 0; i < op.length; i++ )				{					ConfigVariable configVar = new ConfigVariable( );					String paramName = op[i].getName( );					String paramValue = op[i].getValue( );					// find the parameter					ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean							.findParameter( paramName );					// if parameter value is not null, then save it to					// config file					if ( paramValue != null )					{						configVar								.setName( paramName + "_" + parameter.getID( ) ); //$NON-NLS-1$						configVar.setValue( paramValue );						handle.addConfigVariable( configVar );					}				}			}			// save config file			handle.saveAs( configFileName );			handle.close( );			handleUpdate( );		}		catch ( Exception e )		{			AxisFault fault = new AxisFault( e.getLocalizedMessage( ) );			fault.setFaultCode( new QName(					"BirtCacheParameterActionHandler.__execute( )" ) ); //$NON-NLS-1$			fault.setFaultReason( e.getLocalizedMessage( ) );			throw fault;		}	}