public void loadResources() {
   for (int i = 0; i < resourceNames.size(); i++) {
     String filePath = documentDirectory + File.separatorChar + resourceNames.get(i);
     File f = new File(filePath);
     addResource(f);
   }
 }
 public void removeResource(String resourceName) {
   for (BShapeModel shapeModel : shapeModels.values())
     if (shapeModel.getImageName().equals(resourceName)) shapeModel.setImageName("");
   resources.remove(resourceName);
   resourceNames.remove(resourceName);
 }
 public void addResourceName(File object) {
   resourceNames.add(object.getName());
 }