private static void addCommandWrapper(Map<Resource,List<CommandWrapper>> class2Query,Statement s,CommandWrapper wrapper){
  Resource type=s.getSubject();
  List<CommandWrapper> list=class2Query.get(type);
  if (list == null) {
    list=new LinkedList<CommandWrapper>();
    class2Query.put(type,list);
  }
  list.add(wrapper);
}

private static void addCommandWrapper ( Map < Resource , List < CommandWrapper > > class2Query , Statement s , CommandWrapper wrapper ) { Resource type = s . getSubject ( ) ; List < CommandWrapper > list = class2Query . get ( type ) ; if ( list == null ) { list = new LinkedList < CommandWrapper > ( ) ; class2Query . put ( type , list ) ; } list . add ( wrapper ) ; }
inserts a commandwrapper into a given map , creating a list if necessary .
