private Object executeOnServer(Object[] parameters) { long startTime = CachePerfStats.getStatTime(); Object result = null; try { if (this.proxyCache != null) { if (this.proxyCache.isClosed()) { throw proxyCache.getCacheClosedException("Cache is closed for this user."); } UserAttributes.userAttributes.set(this.proxyCache.getUserAttributes()); } result = this.serverProxy.query(this.queryString, parameters); } finally { UserAttributes.userAttributes.set(null); long endTime = CachePerfStats.getStatTime(); updateStatistics(endTime - startTime); } return result; }