code: public static List<String> retriveJavaScriptResources(Chart<?> chart) {
          List<String> resources = new ArrayList<String>();
  
          Class<?> clazz = chart.getClass();
          if (clazz.isAnnotationPresent(JqPlotPlugin.class)) {
              JqPlotResources[] jqPlotResourceses = clazz.getAnnotation(
                      JqPlotPlugin.class).values();
              for (JqPlotResources jqPlotResources : jqPlotResourceses) {
                  resources.add(jqPlotResources.getResource());
              }
          }
  
          //can it/should we make this more generic?
          if(chart.getChartConfiguration().getHighlighter() != null) {
              resources.add(JqPlotResources.Highlighter.getResource());
          }
  
          return resources;
      }
docs: Retorna os recursos de javascript
  @param chart Chart
  @return lista de com os javascripts dos gráficos