1.4: Merged revision 683268 (JCR-1664/JCR-1935). Added support for subclasses that still override the previous getRepository signature.