public synchronized ApplicationRecord getCachedApplicationRecord(String applicationName) { ApplicationInfo existing = applicationHash.get(applicationName); if (existing == null) throw new UnknownApplicationException(String.format(UNKNOWN_APPLICATION_S, applicationName)); ApplicationRecord res = existing.getCachedApplicationRecord(); LOG.debug( String.format(this + " Returning cached app record for %s: %s", applicationName, res)); return res; }