class BadgeClassExtensionServiceImpl implements BadgeClassExtensionService {

  @Override
  public BadgeClassExtension get(String badgeId) throws ProjectCommonException {
    Response response =
        cassandraOperation.getRecordById(Util.KEY_SPACE_NAME, BADGE_CLASS_EXT_TABLE_NAME, badgeId);
    List<Map<String, Object>> badgeList =
        (List<Map<String, Object>>) response.get(JsonKey.RESPONSE);

    if ((badgeList == null) || badgeList.isEmpty()) {
      ProjectLogger.log(
          "BadgeClassExtensionServiceImpl:get: Badge not found " + badgeId,
          LoggerEnum.ERROR.name());
      throw new ProjectCommonException(
          ResponseCode.resourceNotFound.getErrorCode(),
          ResponseCode.resourceNotFound.getErrorMessage(),
          ResponseCode.RESOURCE_NOT_FOUND.getResponseCode());
    }

    return new BadgeClassExtension(badgeList.get(0));
  }

  public  BadgeClassExtensionServiceImpl();
  public  BadgeClassExtensionServiceImpl(CassandraOperation cassandraOperation);

}