Java API code for VersionOne