@Override
 public void deleteEntityById(@NotNull ObjectId id) {
   log.info("Started findEntityById: " + Application.class.getName());
   Query<Application> application =
       CrudRepository.INSTANCE
           .getDatastore("license-app")
           .createQuery(Application.class)
           .field("_id")
           .equal(id);
   CrudRepository.INSTANCE.getDatastore("license-app").findAndDelete(application);
   log.info("Compeleted deleteEntityById: " + Application.class.getName());
 }
 @Override
 public Application findEntityByProperty(@NotBlank String property, @NotBlank String value) {
   log.info("Started findEntityById: " + Application.class.getName());
   Query<Application> query =
       CrudRepository.INSTANCE.getDatastore("license-app").createQuery(Application.class);
   log.info("Compeleted findEntityById: " + Application.class.getName());
   return query.field(property).equal(value).get();
 }
 @Override
 public Application findEntityById(@NotBlank ObjectId id) {
   log.info("Started findEntityById: " + Application.class.getName());
   Query<Application> query =
       CrudRepository.INSTANCE.getDatastore("license-app").createQuery(Application.class);
   log.info("Compeleted findEntityById: " + Application.class.getName());
   return query.field("_id").equal(id).get();
 }
  @Override
  public List<Application> getAllEntities() {
    log.info("Started findEntityById: " + Application.class.getName());

    return CrudRepository.INSTANCE
        .getDatastore("license-app")
        .createQuery(Application.class)
        .asList();
  }
 @Override
 public void updateEntity(@NotNull Application entity) {
   log.info("Started findEntityById: " + Application.class.getName());
   CrudRepository.INSTANCE.getDatastore("license-app").save(entity);
   log.info("Compeleted updateEntity: " + Application.class.getName());
 }
 @Override
 public void createEntity(@NotNull Application entity) {
   log.info("Started Persisting: " + Application.class.getName());
   CrudRepository.INSTANCE.getDatastore("license-app").save(entity);
   log.info("Completed Persisting: " + Application.class.getName());
 }