if (templateContext != null) {
res = new VelocityDecoratorResource(res, templateContext);
}
SqlInstaller installer = new SqlInstaller(this);
installer.install(account.getConnection(), res);
} catch (Exception e) {
getLog().error(e);
throw new MojoFailureException(e.getMessage());
} finally {
account.closeConnectionQuietly();