private boolean isClassInFolder(String fileName)
    {
        String[] files;
        //check if file is in the folder

        files = folderFile.list();

        for (int i = 0; i < files.length; i++) 
        {
            if (this.className.equals(files[i])) 
            {
                return true;
            }
        }

        return false;
    }