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 ( ) ) ; }
Retrieve the internal JCR Repository from a FedoraRepository object