if (nameOfmodelToCreate.equals("")) {
list.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Please specify a name for the module."));
} else if (!WGADesignStructureHelper.isValidModuleName(nameOfmodelToCreate)) {
list.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Invalid chars in module name."));
} else {
IFolder targetContainer = _selectedContainer.getFolder(new Path(nameOfmodelToCreate));
if(nameOfmodelToCreate.contains(".")){
String suffix = nameOfmodelToCreate.substring(nameOfmodelToCreate.lastIndexOf("."),nameOfmodelToCreate.length());
if(suffix.equals(".tml")){
nameOfmodelToCreate = nameOfmodelToCreate.substring(0, nameOfmodelToCreate.lastIndexOf("."));
}
}
IFile targetFile = _selectedContainer.getFile(new Path(nameOfmodelToCreate + ".tml"));
if (targetContainer.exists()) {
list.add(new Status(Status.ERROR, Plugin.PLUGIN_ID, "There is already a folder named \"" + nameOfmodelToCreate + "\" below \"" + _selectedContainer.getName() + "\"."));
} else if (targetFile.exists()) {