Implements parsing an optional tag for import.