*/
public void deleteRes(String cur, Application application) throws ApplicationException {
Application appl = application;
Application a = appl;
String currentResourceId = cur;
Collection tempResources = new TreeSet(new ResourceNameComparator());
for(Iterator resources = a.getResources().iterator(); resources.hasNext();){
Resource r =(Resource)resources.next();
if(!r.getId().equals(currentResourceId)){
tempResources.add(r);
}