making SystemInstance less important for resolving system (still cacheFile relies on it) + fixing Repository (from itests) class since API changed

git-svn-id: https://svn.apache.org/repos/asf/tomee/tomee/trunk@1620144 13f79535-47bb-0310-9956-ffa450edef68