This should be a utility method (or similar) that converts between a String of the following format:
To/From the data structure from
Input signature could be something like:
Having the same publisher in multiple groups (or twice in the same group) should not be allowed. It makes no sense to publish to the same publisher twice.
Since it's easy to unit test, I think it should have a unit test.