/** * Not synchronized, the involved identities might be deleted during the query - which is not * really a problem. */ public int getScore(final WoTOwnIdentity truster, final WoTIdentity trustee) throws NotInTrustTreeException, Exception { if (mIsUnitTest) return 0; final String score = getProperty(truster, trustee, "Score"); if (score.equals("null")) throw new NotInTrustTreeException(truster, trustee); final int value = Integer.parseInt(score); mWoTCache.putScore(truster, trustee, value); return value; }