if (!sourceStore.hasFeature(resourceName)) {
return false;
}
if (sourceStore instanceof ResourcePathStore) {
final ResourcePathStore sourcePathStore = (ResourcePathStore)sourceStore;
final ResourcePath.FilePath resourcePath = sourcePathStore.getResourcePath(resourceName);
// Check for ancestors named test.
// Note: this assumes that the file exists with respect to the nullary environment.
File currentFile = NullaryEnvironment.getNullaryEnvironment().getFile(resourcePath, false);