code: public Archive[] as(final Class<? extends Archive> archive) {
        final List<? extends Archive> archives = asList(archive);
        return archives.toArray(new Archive[archives.size()]);
     }
docs: Gets all dependencies (and the transitive ones too) as given ShrinkWrap Archive type.
  @param archive ShrinkWrap archive.
  @return Array of dependencies and transitive ones for configured state.