protected function createClassDOMElement( DOMDocument $domDocument, eZContentClass $class )
    {
        $classElement = $domDocument->createElement( 'Class' );

        // Set attributes
        $classElement->setAttribute( 'ID', $class->attribute( 'id' ) );
        $classElement->setAttribute( 'primaryLanguage', $class->attribute( 'top_priority_language_locale' ) );
        $classElement->setAttribute( 'identifier', $class->attribute( 'identifier' ) );

        // Add Language list.
        $classElement->appendChild( $this->createNameListDOMElement( $domDocument, $class->NameList ) );

        return $classElement;
    }