final Collection<DepositAccountData> depositAccounts = this.depositAccountReadPlatformService.retrieveForMaturityUpdate();
for (final DepositAccountData depositAccount : depositAccounts) {
try {
final DepositAccountType depositAccountType = DepositAccountType.fromInt(depositAccount.depositType().getId().intValue());
this.depositAccountWritePlatformService.updateMaturityDetails(depositAccount.id(), depositAccountType);
} catch (final PlatformApiDataValidationException e) {
final List<ApiParameterError> errors = e.getErrors();
for (final ApiParameterError error : errors) {
logger.error("Update maturity details failed for account:" + depositAccount.accountNo() + " with message "