JBIDE-18412 and JBIDE-18411

mmm seems this method would be called with 'download', instead of the whole URL, in that case, that'll work