149150151152153154155156157158159
commands=new ArrayList<>(); for(String id :ids){ String[] attr=id.split("-"); if(attr.length==2){ if("command".equals(attr[0])){ Command command=getService().retrieve(Command.class, Integer.parseInt(attr[1])); commands.add(command); } } } }
127128129130131132133134135136137