public long getLastModified(Object templateSource) {
    LiferayTemplateSource liferayTemplateSource = (LiferayTemplateSource) templateSource;

    return liferayTemplateSource.getLastModified();
  }
  public Reader getReader(Object templateSource, String encoding) throws IOException {

    LiferayTemplateSource liferayTemplateSource = (LiferayTemplateSource) templateSource;

    return liferayTemplateSource.getReader(encoding);
  }
  public void closeTemplateSource(Object templateSource) {
    LiferayTemplateSource liferayTemplateSource = (LiferayTemplateSource) templateSource;

    liferayTemplateSource.close();
  }