/** * Return the model directory (relative to the migration directory). */ protected File getModelDirectory(File migrationDirectory) { String modelPath = migrationConfig.getModelPath(); if (modelPath == null || modelPath.isEmpty()) { return migrationDirectory; } File modelDir = new File(migrationDirectory, migrationConfig.getModelPath()); if (!modelDir.exists() && !modelDir.mkdirs()) { logger.debug("Unable to ensure migration model directory exists at {}", modelDir.getAbsolutePath()); } return modelDir; }