moved structure and relation id management from ProcessingContextState
to ProcessingContext to obtain unique IDs within a produced XML