private static void listOfJarFiles(String directoryName, List<File> files) {
        File directory = new File(directoryName);

        // Get all files from a directory.
        File[] fList = directory.listFiles();
        if (fList != null) {
            for (File file : fList) {
                if (file.isFile() && file.getName().endsWith(".jar")) {
                    files.add(file);
                } else if (file.isDirectory()) {
                    listOfJarFiles(file.getAbsolutePath(), files);
                }
            }
        }
    }
Returns the extension extension meta data
Gets the meta data from the siddhi manager

@param targetDirectoryPath The path of the target directory of the maven module containing extensions
@param logger              The maven plugin logger
@param includeOrigin
@param loadFromAllJars
@return NamespaceMetaData namespace meta data list
@throws MojoFailureException   If this fails to access project dependencies
@throws MojoExecutionException If the classes directory from which classes are loaded is invalid
modules/siddhi-doc-gen/src/main/java/io/siddhi/doc/gen/core/utils/DocumentationUtils.java