public BufferedImage[] getPaintImages(String theme) {
        BufferedImage[] images = null;
        String line;
        ArrayList imageNames = new ArrayList();

        try {
            InputStream in = getClass().getResourceAsStream(GameController.CONFIG_DIR + config);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));

            while ((line = br.readLine()) != null) {
                if (line.length() == 0) {
                    continue;
                }
                if (line.startsWith("//")) {
                    continue;
                }
                StringTokenizer tokens = new StringTokenizer(line);
                if (tokens.countTokens() == 1) {
                    String[] nameParts = line.split("/");
                    if(nameParts[0].equals(theme)) {
                        imageNames.add(nameParts[1]);
                    }
                } else if (tokens.countTokens() == 3) {
                } else if(tokens.countTokens() == 4) {
                } else {
                    EIError.debugMsg("wrong config argument count", EIError.ErrorLevel.Error);
                }
            }
            in.close();
            images = new BufferedImage[imageNames.size()];
            for(int i = 0; i < imageNames.size(); i++) {
                images[i] = loadImage(worldImagePath+theme+"/"+imageNames.get(i));
            }
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
//        try {
//            String[] imageNames = ResourceList.getResourceListing(WorldImagePainting.class, worldImagePath+theme+"/");
//            int count = 0;
//            for(int i = 0; i < imageNames.length; i++) {
//                if(!imageNames[i].equals(".svn")) {
//                    count++;
//                }
//            }
//            images = new BufferedImage[count];
//            count = 0;
//            for(int i = 0; i < imageNames.length; i++) {
//                if(!imageNames[i].equals(".svn")) {
//                    images[count] = loadImage(worldImagePath+theme+"/"+imageNames[i]);
//                    count++;
//                }
//            }
//        } catch (Exception e) {
//            System.err.println("Error: " + e.getMessage());
//        }
        return images;
    }