Nexus oss 2.6.0.x nexus 5822

Attempt at a fix for https://issues.sonatype.org/browse/NEXUS-5822