When the entity id is a string it always comes in the form *prefix + numeric id*.
When the entity id is an integer it contains the *numeric id only*. The prefix has to be concluded from the context (the documentType).
Also the methods are called in different contexts: ```getEntityId(int)``` is used when processing snaks, not the "entity"-key of an EntityDocument.