private TellerEntity getTellerEntity()

in service/src/main/java/org/apache/fineract/cn/teller/service/internal/processor/DepositTransactionHandler.java [238:246]


  private TellerEntity getTellerEntity(final String tellerCode) {
    final Optional<TellerEntity> optionalTeller = this.tellerRepository.findByIdentifier(tellerCode);
    if (!optionalTeller.isPresent()) {
      this.logger.warn("Teller {} not found.", tellerCode);
      throw new IllegalStateException("Teller not found.");
    }

    return optionalTeller.get();
  }