} /*
id = uri; if ( !FileUtil.isLocalResource( uri ) ) { extension = FileUtil.getExtFromFileName( uri ); this.source = IImage.URL_IMAGE; return; }  this.source = IImage.FILE_IMAGE; try { new URL( uri ); extension = FileUtil.getExtFromFileName( uri ); return; } catch ( MalformedURLException e ) { }  extension = FileUtil.getExtFromFileName( uri ); }
	public Image( IImageContent content )	{		String imgUri = content.getURI( );		byte[] imgData = content.getData( );		extension = content.getExtension( );		if ( extension == null )		{			String mimeType = content.getMIMEType( );			if ( mimeType != null )			{				extension = FileUtil.getExtFromType( mimeType );			}		}		switch ( content.getImageSource( ) )		{			case IImageContent.IMAGE_FILE :				if ( imgUri != null )				{						this.id = imgUri;						this.source = IImage.FILE_IMAGE;					}				break;			case IImageContent.IMAGE_NAME :				if ( imgData != null )				{					this.data = imgData;					this.source = IImage.DESIGN_IMAGE;					this.id = imgUri;				}				break;			case IImageContent.IMAGE_EXPRESSION :				if ( imgData != null )				{					this.data = imgData;					this.source = IImage.CUSTOM_IMAGE;					this.id = content.getInstanceID( ).toString( );				}				break;			case IImageContent.IMAGE_URL :				if ( imgUri != null )				{					this.id = imgUri;					this.source = IImage.URL_IMAGE;				}				break;			default :				assert ( false );		}	} /*