Bug 184762 BIRT Model - Enhancments to the level defintion
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ParseStateFactory.java
.equalsIgnoreCase( DesignSchemaConstants.ENCRYPTED_PROPERTY_TAG )
				|| tagName
						.equalsIgnoreCase( DesignSchemaConstants.SIMPLE_PROPERTY_LIST_TAG ) )
			return new PropertyContentState( handler, element, tagName, parent );
		return new ContentNodeState( tagName, handler, parent );
	}
	/**
	 * Creates a parse state with the given attributes. It is used to create a
	 * ReportElementState when parsing a element property value.
	 * 
	 * @param tagName
	 * @param allowedElementDefn
	 * @param handler
	 * @param container
	 * @param propDefn
	 * 
	 * @return a parse state
	 */
	public static AbstractParseState createParseState( String tagName,
			IElementDefn allowedElementDefn, ModuleParserHandler handler,
			DesignElement container, IPropertyDefn propDefn )
	{
		if ( propDefn == null || !( (PropertyDefn) propDefn ).isElementType( )
				|| allowedElementDefn == null )
			return null;
		String elementName = allowedElementDefn.getName( );
		
		
		if ( MetaDataDictionary.getInstance( ).getExtension( elementName ) != null )
		{