String value = result.toString().trim();
String value = paramValue.toString().trim();
	private boolean validateParameter(IParameterDefn handle, Object result)	{		assert IParameterDefnBase.SCALAR_PARAMETER == handle.getParameterType();		IScalarParameterDefn paramHandle = (IScalarParameterDefn) handle;		String paramName = paramHandle.getName();		int type = paramHandle.getDataType();		// TODO: Note that if a parameter is not required, and it is not		// defined,		// the following code would add a null to it. We simply should		// not add the		// entry to the map.		if (result == null)		{			return false;		}				if (result == null)		{			if (!paramHandle.allowNull())			{				log						.log(								Level.SEVERE,								"{0} doesn't allow a null value or user doesn't input a proper parameter.", paramName); //$NON-NLS-1$				return false;			}			return true;		}		else		{			/*if(type==IParameterDefn.TYPE_STRING && result.toString().length()==0 &&!parmHandle.allowBlank())			{				return false;			}	*/				}		/*		 * Get value according to different type If it has a non-null		 * value, we should validate whether this value has a correct		 * type		 */		if (type == IScalarParameterDefn.TYPE_DECIMAL || type == IScalarParameterDefn.TYPE_FLOAT)		{			if (result instanceof Number)				return true;			log.log(Level.SEVERE,							"{0} should be a number", paramName); //$NON-NLS-1$			return false;		}		else if (type == IScalarParameterDefn.TYPE_DATE_TIME)		{			if (result instanceof Date)				return true;			log.log(Level.SEVERE,								"The specified value of {0} must be date, or it cannot be parsed. Please check your date value.You should input the date value like \"9/13/08 8:01 PM\"", paramName); //$NON-NLS-1$			return false;		}		else if (type == IScalarParameterDefn.TYPE_STRING)		{			String value = result.toString().trim();			if (value.equals("") && !paramHandle.allowBlank()) //$NON-NLS-1$			{				log.log(Level.SEVERE,								"{0} can't be blank", paramName); //$NON-NLS-1$				return false;			}			return true;		}		else if (type == IScalarParameterDefn.TYPE_BOOLEAN)		{			if (result instanceof Boolean)				return true;			log.log(Level.SEVERE,							"{0} should be a boolean value", paramName); //$NON-NLS-1$			return false;		}		assert type == IScalarParameterDefn.TYPE_ANY;		return true;	}