added support for Nexus OSS snapshot
extracted the functionality into a single class