File file = new File(path);
data.addItem(Keys.FILE, file);
// Create command.
CreateFile createFile = new CreateFile();
try {
createFile.perform(data);
} catch (Exception exception) {
exception.printStackTrace();
}
// Refresh panels.
CommandData refreshData = new CommandData();