in service/src/main/java/org/apache/fineract/cn/rhythm/service/internal/command/handler/BeatCommandHandler.java [81:96]
public void processCreateBeatCommand(final CreateBeatCommand createBeatCommand) {
final boolean applicationHasRequestForAccessPermission = identityPermittableGroupService.checkThatApplicationHasRequestForAccessPermission(
createBeatCommand.getTenantIdentifier(), createBeatCommand.getApplicationIdentifier());
if (!applicationHasRequestForAccessPermission) {
logger.info("Rhythm needs permission to publish beats to application, but couldn't request that permission for tenant '{}' and application '{}'.",
createBeatCommand.getTenantIdentifier(), createBeatCommand.getApplicationIdentifier());
}
final ClockOffset clockOffset = clockOffsetService.findByTenantIdentifier(createBeatCommand.getTenantIdentifier());
final BeatEntity entity = BeatMapper.map(
createBeatCommand.getTenantIdentifier(),
createBeatCommand.getApplicationIdentifier(),
createBeatCommand.getInstance(),
clockOffset);
this.beatRepository.save(entity);
}