class ConfigPropertyServiceImpl implements ConfigPropertyService {

	@Override
	public boolean isApplicationExisting(String application) throws Exception {
		List<ConfigPropertyRelation> configRelationList = configPropertyRelationRepository.findAll();
		Map<String, String> applicationParentMap = new HashMap<>();
		configRelationList.forEach(configRelation -> {
			applicationParentMap.put(configRelation.getApplication(), configRelation.getParent());

		});
		if (applicationParentMap.containsKey(application)) {
			return true;
		}
		return false;
	}

}