AttributeValue value = factory.createValue(attribute.getType(), currentValue.toString());
String textValue = currentValue.toString(); if(textValue == null || textValue.length() == 0) return null; AttributeValue value = factory.createValue(attribute.getType(), textValue);
	public AttributeValue getValue()	{		if(attribute == null || currentValue == null)			return null;				AttributeFactory factory = AttributeFactory.getInstance();		try		{			AttributeValue value = factory.createValue(attribute.getType(), currentValue.toString());			for(Iterator it = attributeHandlers.iterator(); it.hasNext();)				((AttributeHandler)it.next()).checkUserValue(value, attribute);			return value;		}		catch(UnknownIdentifierException e)		{			ClientFrame.showErrorMessage("Invalid attribute type '" + attribute.getType() + "'", e);			return null;		}		catch (ParsingException e)		{			ClientFrame.showErrorMessage("Invalid value '" + currentValue + "'", e);			return null;		}	}