protected void sortResources(){
  WebLogicResourceComparator priorityComparator=new WebLogicResourceComparator();
  List<Resource> resources=getResources();
  Collections.sort(resources,priorityComparator);
}

protected void sortResources ( ) { WebLogicResourceComparator priorityComparator = new WebLogicResourceComparator ( ) ; List < Resource > resources = getResources ( ) ; Collections . sort ( resources , priorityComparator ) ; }
sort resource list because some resources needs to have another resources created first .
