{
Transaction tx = persistentStore.getTransaction();
tx.begin();
persistentStore.makePersistent(rule);
persistentStore.lockForWrite(rule);
tx.commit();
}
catch (Exception e)
{
throw new ProfilerException("failed to store: " + rule.getLocatorName(), e);
}