code: private HashSet<Resource> getResources(GeneratorContext context, JClassType userType, FileFilter filter) {
      Map<String, Resource> map = context.getResourcesOracle().getResourceMap();
      final String pack = userType.getPackage().getName().replace('.', '/');
     
      HashSet<Resource> resourceList = new HashSet<Resource>();
      for (Entry<String, Resource> entry : map.entrySet()) {
        String path = entry.getKey();
        if (!path.startsWith(pack))
          continue;
        String ext = getExtension(path);
        if (EXTENSION_MAP.containsKey(ext))
          resourceList.add(entry.getValue());
      }
  
      return resourceList;
    }
docs: Get all related resources of the auto resource bundler.