}
return cachedHandler;
}
private EntityCrudKitSettings<?> getCurrentSettings() {
ProjectEntityCrudKitSettingsRepository repository = ProjectEntityCrudKitSettingsRepositoryManager.getRepository();
ProjectEntityCrudKitSettings projectSettings = repository.findOne(projectId);
if (projectSettings == null) {
projectSettings = new ProjectEntityCrudKitSettings(projectId, getDefaultSettings());
repository.save(projectSettings);
}
return projectSettings.getSettings();
}