Shared library for building GBIF webservices