code: public static List<StackTraceElement> cleanup(StackTraceElement[] stack) {
          List<StackTraceElement> elements = new ArrayList<>();
          if (stack == null) {
              return elements;
          } else {
              for (StackTraceElement element : stack) {
                  // Remove all iPOJO calls.
                  if (element.getMethodName().startsWith("__M_")) {
                      String newMethodName = element.getMethodName().substring("__M_".length());
                      elements.add(new StackTraceElement(element.getClassName(), newMethodName, element.getFileName(),
                              element.getLineNumber()));
                  } else if (element.getLineNumber() >= 0) {
                      elements.add(element);
                  }
              }
          }
          return elements;
      }
docs: Removes the '__M_' iPOJO trace from the stack trace.
  
  @param stack the original stack trace
  @return the cleaned stack trace