code: public static List<TableModel> extractTableModelsFromSourceCode(final Path srcDir, final String packageName, final String classPrefix) throws IOException, ClassNotFoundException {
          LOG.debug("Starting table model extraction from source code...");
          final List<TableModel> results = new ArrayList<>();
          final String packageNameAsFolders = packageName.replace(".", "/");
          final Path codeFilePath = srcDir.resolve(packageNameAsFolders);
          LOG.debug("Folder with source files is {}", codeFilePath.toAbsolutePath().toString());
  
          final List<Path> paths = Files.list(codeFilePath)
                  .filter(path -> path.getFileName().toString().matches(classPrefix + ".+\\.java"))
                  .collect(Collectors.toList());
          LOG.debug("Found following java source files:\n{}", paths.stream().map(p -> p.toAbsolutePath().toString()).collect(Collectors.joining("\n")));
          for (Path p : paths) {
              LOG.debug("Loading source file {}", p.toAbsolutePath().toString());
              final String code = new String(Files.readAllBytes(p));
              final Matcher m = tableModelPattern.matcher(code);
              if (m.find()) {
                  LOG.debug("Found serialized table model inside of file. Extracting...");
                  final String encodedModel = m.group(1);
                  final byte[] decodedModel = Base64.getDecoder().decode(encodedModel);
                  final ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(decodedModel));
                  results.add((TableModel) ois.readObject());
                  LOG.debug("Table model successfully extracted and deserialized.");
              }
          }
  
          return results;
      }
docs: Extracts all {@link TableModel}s from the Java source code of the RedG entity classes at the specified location.
  
  @param srcDir The source folder without the package structure directories
  @param packageName The package name of the RedG classes
  @param classPrefix The class prefix of the RedG classes ("G" if not changed during code generation)
  @return a list of all found {@link TableModel}s
  @throws IOException Thrown when a file could not be found or read
  @throws ClassNotFoundException Thrown when the {@link TableModel} (and thus redg-models maven module) is not in classpath