{
if ( container.hasProperty( key ) )
{
// try to keep the same type as the previous value
Class<?> c = GraphDbUtil.getProperty( container, key ).getClass();
PropertyHandler propertyHandler = PropertyTransform.getHandler( c );
if ( propertyHandler == null )
{
MessageDialog.openError( null, "Error",
"No property handler was found for type "
+ c.getSimpleName() + "." );
return;
}
Object o = null;
try
{
o = propertyHandler.parse( value );
}
catch ( Exception e )
{
Dialog.openError( "Error", "Could not parse the input as type "
+ c.getSimpleName() + "." );