class ConfigPropertyServiceImpl implements ConfigPropertyService {

	@Override
	public boolean isCfkeyExisting(String cfkey) throws Exception {
		List<ConfigPropertyMetadata> configMetadataList = configPropertyMetadataRepository.findAll();
		Map<String, String> cfkeyDescriptionMap = new HashMap<>();
		configMetadataList.forEach(configMetadata -> {
			cfkeyDescriptionMap.put(configMetadata.getCfkey(), configMetadata.getDescription());
		});
		if (cfkeyDescriptionMap.containsKey(cfkey)) {
			return true;
		} else {
			return false;
		}
	}

}