I think it will depend on where you are deemed to be resident for tax purposes, you don't state which country you are normally resident or where you will be paid etc.
The Fry Group in UK deal with this sort of thing all the time:
That won't be much help if you are are living in other parts of Europe though. Tax consultants are usually cheaper than lawyers.