in src/main/java/org/apache/fineract/cn/command/internal/CommandBus.java [189:207]
private <C> CommandSource storeCommand(final C command) {
this.logger.debug("CommandBus::storeCommand called.");
final LocalDateTime now = LocalDateTime.now();
final CommandSource commandSource = new CommandSource();
commandSource.setSource(
this.environment.getProperty(
CommandConstants.APPLICATION_NAME_PROP,
CommandConstants.APPLICATION_NAME_DEFAULT
)
);
commandSource.setBucket(now.format(DateTimeFormatter.ISO_LOCAL_DATE));
commandSource.setCreatedOn(Date.from(now.atZone(ZoneId.systemDefault()).toInstant()));
commandSource.setCommand(this.gson.toJson(command));
this.tenantAwareEntityTemplate.save(commandSource);
return commandSource;
}