code: public static void destroy(final Resource... resources)
    {
      for (Resource r : resources) {
        if (r != null) {
          r.destroy();
        }
      }
    }
docs: Destroy a set of {@link Resource resources}.