/* * Gets a specific User tuple from the database as specified by the tags ID. */ public RESTUserV1 getUserById(final int id) { try { if (entityCache.containsKeyValue(RESTUserV1.class, id)) { return entityCache.get(RESTUserV1.class, id); } else { final RESTUserV1 user = client.getJSONUser(id, null); entityCache.add(user); return user; } } catch (Exception e) { log.error(ExceptionUtilities.getStackTrace(e)); } return null; }