Applying my patch from LANG-379, based on Robert Scholte's patch adding the 'getFragment' family of methods