/** * Access the String contents from the given resource location. * @param location * @param doCache * @return resource contents , never null */ public static String get(String location, boolean doCache) { String content = null; if (doCache) { content = CACHE.get(location); } if (content == null) { content = contentOrNull(location); if (content == null) { content = "[StringResource] Missing or error reading resource:" + location; } else { if (doCache) { CACHE.put(location, content); } } } return content; } /**