docs: public static void validate(final Module module) {
          if (null == module) {
              throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                  .entity("Module cannot be null!")
                  .build());
          }
          if(module.getName() == null ||
                  module.getName().isEmpty()){
              throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                      .entity("Module name cannot be null or empty!")
                      .build());
          }
          if(module.getVersion()== null ||
                  module.getVersion().isEmpty()){
              throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
                      .entity("Module version cannot be null or empty!")
                      .build());
          }
  
          // Check artifacts
          for(final Artifact artifact: DataUtils.getAllArtifacts(module)){
              validate(artifact);
          }
  
          // Check dependencies
          for(final Dependency dependency: DataUtils.getAllDependencies(module)){
              validate(dependency.getTarget());
          }
      }