class JcrTemplate extends JcrAccessor implements JcrOperations {

    @Override
    public void addLockToken(final String lock) {
        execute(new JcrCallback<Void>() {
            /**
             * @see org.springframework.extensions.jcr.JcrCallback#doInJcr(javax.jcr.Session)
             */
            @Override
            public Void doInJcr(Session session) throws RepositoryException {
                session.getWorkspace().getLockManager().addLockToken(lock);
                //                session.addLockToken(lock);
                return null;
            }
        }, true);
    }

    public  JcrTemplate();
    public  JcrTemplate(SessionFactory sessionFactory);

}