/** Getter for target folder. If the folder does not * exists it is created at this point. * * @return the target folder * @exception IOException if the possible creation of the folder fails */ public DataFolder getTargetFolder () throws IOException { if (targetDataFolder == null) { // bugfix #28357, check if filesystem is null if (getEnabledSystem () == null) { throw new IOException (NbBundle.getMessage(TemplateWizard.class, "ERR_NoFilesystem")); } targetDataFolder = DataFolder.findFolder (getEnabledSystem ().getRoot ()); } return targetDataFolder; }