2223242526272829
public Repository getRepository() { try { return new JndiTemplate().lookup(jndiName, Repository.class); } catch (final NamingException e) { throw new RepositoryAccessException("Lookup JCR repository using JNDI failed", e); } }