public boolean generateGridProperties(GridDataTemplate dataTemplate)
      throws IOException, TemplateException {
    log.info("Start - GuiServiceImpl : generateGridProperties : ");
    countingPathAndPackageBlockService.setDomainCode(dataTemplate.getDomainCode());
    // Prepared data model from data template
    Map<String, Object> modeleEntityReference =
        configurationGenerator.preparedDataTemplate(dataTemplate);

    // Get counting path of entity reference factory to be generated
    String pathFile = countingPathAndPackageBlockService.countingPathProperties();
    // Name of file with specific extension to generated
    // String nameOfFile;
    // if (dataTemplate instanceof RemoteGridDataTemplate)
    // {
    // nameOfFile =
    // configurationGenerator.getPropertiesFileNameOfRemoteGrid(null);
    // }
    // else
    // {
    String nameOfFile =
        configurationGenerator.getPropertiesFileNameOfGrid(null, dataTemplate.getId());
    // }
    // The template name
    String templateFileName = "gridProperties.ftl";
    // Generate File
    boolean isGenerated =
        generatorCoreService.generateFile(
            templateFileName, modeleEntityReference, pathFile, nameOfFile);

    log.info("End - GuiServiceImpl : generateGridProperties : ");

    return isGenerated;
  }
  public boolean generateScreenOtherProperties(ScreenDataTemplate screenDataTemplate)
      throws IOException, TemplateException {
    log.info("Start - GuiServiceImpl : generateScreenOtherProperties : ");

    countingPathAndPackageBlockService.setDomainCode(screenDataTemplate.getDomainCode());

    if (screenDataTemplate.getOtherLangage() == null) return true;
    // Prepared data model from data template
    Map<String, Object> modeleEntityReference =
        configurationGenerator.preparedDataTemplate(screenDataTemplate);

    // Get counting path of entity reference factory to be generated
    String pathFile = countingPathAndPackageBlockService.countingPathProperties();
    // Name of file with specific extension to generated
    String nameOfFile =
        configurationGenerator.getOtherLangagePropertiesFileNameOfScreen(
            screenDataTemplate.getId(), screenDataTemplate.getOtherLangage().toLowerCase());
    // The template name
    String templateFileName = "screenOtherProperties.ftl";
    // Generate File
    boolean isGenerated =
        generatorCoreService.generateFile(
            templateFileName, modeleEntityReference, pathFile, nameOfFile);

    log.info("End - GuiServiceImpl : generateScreenOtherProperties : ");

    return isGenerated;
  }