try { String theID = attrs.getValue( DesignSchemaConstants.ID_ATTRIB );  if ( !StringUtil.isBlank( theID ) ) {   long id = Long.parseLong( theID ); element.setID( id ); } } catch ( NumberFormatException e ) { handler .getErrorHandler( ) .semanticError( new DesignParserException( new String[]{ element.getIdentifier( ), attrs .getValue( DesignSchemaConstants.ID_ATTRIB )}, DesignParserException.DESIGN_EXCEPTION_INVALID_ELEMENT_ID ) ); }  if ( !addToSlot( container, slotID, element ) ) return;
initSimpleElement( attrs );
	protected void initElement( Attributes attrs, boolean nameRequired )	{		DesignElement element = getElement( );		String name = attrs.getValue( DesignElement.NAME_PROP );		if ( StringUtil.isBlank( name ) )		{			if ( nameRequired )				handler.getErrorHandler( ).semanticError(						new NameException( element, null,								NameException.DESIGN_EXCEPTION_NAME_REQUIRED ) );		}		else		{			element.setName( name );		}		if ( element.getDefn( ).canExtend( ) )		{			String extendsName = attrs					.getValue( DesignSchemaConstants.EXTENDS_ATTRIB );			element.setExtendsName( extendsName );			resolveExtendsElement( );		}		else		{			// If "extends" is set on an element that can not be extended,			// exception will be thrown.			if ( !StringUtil.isBlank( attrs					.getValue( DesignSchemaConstants.EXTENDS_ATTRIB ) ) )				handler						.getErrorHandler( )						.semanticError(								new DesignParserException(										DesignParserException.DESIGN_EXCEPTION_ILLEGAL_EXTENDS ) );		}		// get the "id" of the element		try		{			String theID = attrs.getValue( DesignSchemaConstants.ID_ATTRIB );			if ( !StringUtil.isBlank( theID ) )			{				// if the id is not null, parse it				long id = Long.parseLong( theID );				element.setID( id );			}		}		catch ( NumberFormatException e )		{			handler					.getErrorHandler( )					.semanticError(							new DesignParserException(									new String[]{											element.getIdentifier( ),											attrs													.getValue( DesignSchemaConstants.ID_ATTRIB )},									DesignParserException.DESIGN_EXCEPTION_INVALID_ELEMENT_ID ) );		}		if ( !addToSlot( container, slotID, element ) )			return;	}