Domain model and ports of the resource server. Plain Java: no Spring and no dependency on any outer module.