code: public static Repository getJcrRepository(final FedoraRepository repository) {
          if (repository instanceof FedoraRepositoryImpl) {
              return ((FedoraRepositoryImpl)repository).getJcrRepository();
          }
          throw new ClassCastException("FedoraRepository is not a " + FedoraRepositoryImpl.class.getCanonicalName());
      }
docs: Retrieve the internal JCR Repository from a FedoraRepository object
  
  @param repository the FedoraRepository
  @return the JCR Repository