public synchronized void setCachedApplicationRecord( String applicationName, ApplicationRecord applicationRecord) { ApplicationInfo existing = applicationHash.get(applicationName); if (existing == null) throw new UnknownApplicationException( String.format(APPLICATION_S_HAS_NOT_BEEN_REGISTERED, applicationName)); LOG.debug( String.format( this + " Caching app record for %s to %s", applicationName, applicationRecord)); existing.setCachedApplicationRecord(applicationRecord); }