[UIMA-3969] make the get name space prefix operation a method for reuse, and allow for different id names for json and xmi.

git-svn-id: https://svn.apache.org/repos/asf/uima/uimaj/branches/2.6.0-json@1617519 13f79535-47bb-0310-9956-ffa450edef68