propName = Module.CONFIG_VARS_PROP;
propName = IModuleModel.CONFIG_VARS_PROP;
	static void checkStructureToExport( StructureHandle structToExport )	{		String memberName = null;		String propName = null;		// Check whether the structure is allowed to export.		String structName = structToExport.getDefn( ).getName( );		if ( EmbeddedImage.EMBEDDED_IMAGE_STRUCT.equals( structName ) )		{			propName = Module.IMAGES_PROP;			memberName = EmbeddedImage.NAME_MEMBER;		}		else if ( CustomColor.CUSTOM_COLOR_STRUCT.equals( structName ) )		{			propName = Module.COLOR_PALETTE_PROP;			memberName = CustomColor.NAME_MEMBER;		}		else if ( ConfigVariable.CONFIG_VAR_STRUCT.equals( structName ) )		{			propName = Module.CONFIG_VARS_PROP;			memberName = ConfigVariable.NAME_MEMBER;		}		else		{			throw new IllegalArgumentException( "The structure \"" //$NON-NLS-1$					+ structName + "\" is not allowed to export." ); //$NON-NLS-1$		}		// Check whether the name property value is defined.		Object value = structToExport.getMember( memberName ).getValue( );		if ( StringUtil.isBlank( (String) value ) )		{			throw new IllegalArgumentException( "The structure \"" //$NON-NLS-1$					+ structName					+ "\" must have member \"" + memberName + "\" defined." ); //$NON-NLS-1$ //$NON-NLS-2$		}		// Check whether this structure is in design file.		boolean found = false;		ModuleHandle moduleHandle = structToExport.getElementHandle( )				.getModuleHandle( );		PropertyHandle propertyHandle = moduleHandle				.getPropertyHandle( propName );		List list = propertyHandle.getListValue( );		if ( list != null )		{			Iterator iter = list.iterator( );			while ( iter.hasNext( ) )			{				Structure struct = (Structure) iter.next( );				if ( struct == structToExport.getStructure( ) )				{					found = true;					break;				}			}		}		if ( !found )		{			throw new IllegalArgumentException(					"The structure to export must be in design file." ); //$NON-NLS-1$		}	}