protected void validateResourceState ( Resource resource ) { if ( resource instanceof StorageAwareResource && ( ( StorageAwareResource ) resource ) . isLoadedFromStorage ( ) ) { LOG . error ( "Discouraged attempt to compute types for resource that was loaded from storage. Resource was : " + resource . getURI ( ) , new Exception ( ) ) ; } }
Checks the internal state of the resource and logs if type resolution was triggered unexpectedly .