private static synchronized VelocityEngine getEngine()
    {
        if (instance == null)
        {
            try
            {
              VelocityEngine engine = new VelocityEngine();

              engine.setProperty(RuntimeConstants.RESOURCE_LOADER, "file");
              engine.setProperty(RuntimeConstants.PARSER_POOL_SIZE, "1");

              engine.setProperty("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.FileResourceLoader");
              engine.setProperty("file.resource.loader.path", PathManager.getPluginsPath() + "/Copyright/resources");

              engine.setProperty(RuntimeConstants.RUNTIME_LOG_NAME, CopyrightManager.class.getName());

              engine.init();

              instance = engine;
            }
            catch (Exception ignored)
            {
            }
        }

        return instance;
    }
private static synchronized VelocityEngine getEngine()