* @param newState the new state of the content
* @return the new state of the content
*/
private CacheState checkContentState(CacheState newState) {
if (contentState == CacheState.ERROR) {
InstrumentationBuilder builder = Instrumentation.builder("SourceEntryImpl-checkContentState");
builder.data("message", "contentState changing from " + contentState + " to " + newState);
//builder.data("source", source.getFullName());
builder.record(new AnalysisException());
builder.log();
}
return newState;
}