Reader config = null;
try {
config = new InputStreamReader(getClass().getResourceAsStream(
DEFAULT_PROFILE));
final RulesProfile profile = profileImporter.importProfile(config,
messages);
profile.setName(OCLintRuleRepository.REPOSITORY_KEY);
profile.setLanguage(ObjectiveC.KEY);
profile.setDefaultProfile(true);
return profile;
} finally {
Closeables.closeQuietly(config);
}