}
}
}
} catch (Exception e) {
LOG.error("file: " + file.getAbsolutePath() + ", profile: " + profile, e);
throw new InvalidPropertyFile(e.getMessage(), e);
}
if (!profileFound) {
throw new IllegalStateException("profile not found in the file");
}
if (properties.size() == defaultSize) {