if(projectTemplateDirectoryName!=null && !projectTemplateDirectoryName.equals("")){
IProjectTemplatesManager projectTemplatesManager = ServerManager.getServerManager().getProjectTemplatesManager();
IStorage projectTemplatesDirectory = projectTemplatesManager.getProjectTemplatesDirectory();
IStorage templateDir = projectTemplatesDirectory.newInstance(projectTemplatesDirectory, projectTemplateDirectoryName);
if(templateDir.exists()) {
IStorage[] files = templateDir.listFiles();
for (int i = 0; i < files.length; i++) {
IStorage file = files[i];
if(file.isDirectory() && file.getName().equals(IDavinciServerConstants.DOT_SETTINGS)){
IStorage destinationDir = projectDir.newInstance(projectDir, IDavinciServerConstants.DOT_SETTINGS);
destinationDir.mkdirs();