@Override
    public void validate(Context context) {
        ApplicationPackage app = context.deployState().getApplicationPackage();
        ApplicationFile sdDir = app.getFile(ApplicationPackage.SEARCH_DEFINITIONS_DIR);
        if (sdDir.exists() && sdDir.isDirectory())
            context.deployState().getDeployLogger().logApplicationPackage(
                    Level.WARNING,
                    "Directory " + ApplicationPackage.SEARCH_DEFINITIONS_DIR.getRelative() +
                    "/ should not be used for schemas, use " + ApplicationPackage.SCHEMAS_DIR.getRelative() + "/ instead");
    }
Validates that correct directory is used for schemas

@author hmusum
config-model/src/main/java/com/yahoo/vespa/model/application/validation/SchemasDirValidator.java