/**
* Transfers the scripts from {@link PackagedScriptTemplates} to the Hibernate store.
*/
private void transferPackagedScriptTemplatesToHibernate()
{
final PackagedScriptTemplates pst = new PackagedScriptTemplates();
final List<ScriptTemplate> templates = new ArrayList<ScriptTemplate>();
for (final Lang lang : Lang.values())
{
templates.addAll(pst.findAll(lang));
}
for (final ScriptTemplate template : templates)
{
final PersistentScriptTemplate pTemplate = PersistentScriptTemplate.fromScriptTemplate(template);