The hub-common library supplies convenient communication with a Hub server through rest Api's as well as providing convenient ways to download the CLI and execute it.
You can download the latest release from Maven Central.
All documentation for hub-common can be found on the base project: https://github.com/blackducksoftware/hub-common/wiki