code: public static String printResult(final JoinPoint joinPoint, final Object object, final boolean printResultDetail) {
  
          Optional<LoggingAspectConfig> config = AopAnnotationUtils.getConfigAnnotation(joinPoint);
  
          boolean resultDetails = printResultDetail;
          boolean resultCollectionAware = LoggingAspectConfig.DEFAULT_RESULT_COLLECTION_AWARE;
  
          if (config.isPresent()) {
              resultDetails = config.get().resultDetails();
              resultCollectionAware = config.get().resultCollectionAware();
          }
  
          if (!resultDetails) {
              return PRINT_HIDDEN;
          }
  
          if (resultCollectionAware) {
              return printCollectionAware(object);
          }
  
          return String.valueOf(object);
  
      }
docs: Print Result object according to input parameters and {@link LoggingAspectConfig}.
  
  @param joinPoint         - intercepting join point
  @param object            - result value to be printed
  @param printResultDetail - print result detail flag for programming approach. NOTE! can me overridden with {@link
  LoggingAspectConfig}