Bug 149922 Image builder - URI and file source type are treated as same
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ImageState.java
}
	/**
	 * Check whether the source type conflicts, and set the proper source type.
	 */
	private void checkImageType( )
	{
		int type = 0;
		Module module = handler.getModule( );
		String uri = (String) image.getLocalProperty( module,
				ImageItem.URI_PROP );
		if ( !StringUtil.isEmpty( uri ) )
		{
			setProperty( ImageItem.SOURCE_PROP,
					DesignChoiceConstants.IMAGE_REF_TYPE_URL );
			type++;
		}
		StructRefValue imageName = (StructRefValue) image.getLocalProperty(
				module, ImageItem.IMAGE_NAME_PROP );
		if ( imageName != null )
		{
			setProperty( ImageItem.SOURCE_PROP,
					DesignChoiceConstants.IMAGE_REF_TYPE_EMBED );
			type++;
		}
		String typeExpr = (String) image.getLocalProperty( module,
				ImageItem.TYPE_EXPR_PROP );
		String valueExpr = (String) image.getLocalProperty( module,
				ImageItem.VALUE_EXPR_PROP );
		if ( !StringUtil.isEmpty( typeExpr ) || !StringUtil.isEmpty( valueExpr ) )
		{