@Override
  public void savePageToXml(String projectPath, String projectModuleName, Page page) {
    String filePath = getPortalSpecPath(projectPath, projectModuleName) + "/pml";
    File f = new File(filePath);
    if (!f.exists()) {
      f.mkdirs();
    }
    String fileName = page.getPagename() + ".pml";
    File file = new File(filePath + "/" + fileName);
    String d = page.toXml();
    try {
      FileUtils.writeStringToFile(file, d, "UTF-8");

    } catch (Exception e) {
      LfwLogger.error(e.getMessage(), e);
      throw new LfwRuntimeException(e);
    }
  }
 @Override
 public String pageToString(Page page) {
   return page.toXml();
 }