Module moduleToSearch = this; if ( namespace != null ) moduleToSearch = getLibraryWithNamespace( namespace );
if ( namespace == null ) return null;
	public EmbeddedImage findImage( String imageName )	{		String namespace = StringUtil.extractNamespace( imageName );		String name = StringUtil.extractName( imageName );		Module moduleToSearch = this;		if ( namespace != null )			moduleToSearch = getLibraryWithNamespace( namespace );		if ( moduleToSearch != null )		{			List list = (List) moduleToSearch.getLocalProperty( moduleToSearch,					IMAGES_PROP );			if ( list != null )			{				for ( int i = 0; i < list.size( ); i++ )				{					EmbeddedImage image = (EmbeddedImage) list.get( i );					if ( image.getName( ) != null							&& image.getName( ).equals( name ) )						return image;				}			}		}		return null;	}