class OcdsController extends GenericOCDSController {

    public ReleasePackage createReleasePackage(final Release release) {
        ReleasePackage releasePackage = new ReleasePackage();
        try {
            releasePackage.setLicense(new URI("https://creativecommons.org/licenses/by/2.0/"));
            releasePackage.setPublicationPolicy(new URI("https://github.com/open-contracting/sample-data/"));
            releasePackage.setUri(new URI(SERVER_DOMAIN + "/api/ocds/package/ocid/" + release.getOcid()));
        } catch (URISyntaxException e) {
            e.printStackTrace();
        }
        releasePackage.setPublishedDate(release.getDate());
        releasePackage.getReleases().add(release);

        Publisher publisher = new Publisher();

        publisher.setName("Government of Vietnam: Public Procurement Agency");
        publisher.setScheme("VN-PPA");
        publisher.setUid(release.getOcid());
        publisher.setUri(SERVER_DOMAIN);
        releasePackage.setPublisher(publisher);
        return releasePackage;
    }

}