@@ -0,0 +1,1509 @@
+package com.github.aureliano.verbum_domini.resource;%0A%0Aimport java.util.Map;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0A%0Aimport org.apache.log4j.Logger;%0A%0Aimport com.github.aureliano.verbum_domini.core.AppConfiguration;%0Aimport com.github.aureliano.verbum_domini.core.data.DataBookAbbreviations;%0Aimport com.github.aureliano.verbum_domini.helper.UrlHelper;%0Aimport com.github.aureliano.verbum_domini.model.Abbreviation;%0Aimport com.github.aureliano.verbum_domini.model.Abbreviations;%0A%0A@Path(%22abbreviations%22)%0Apublic class AbbreviationsResource %7B%0A%09%0A%09private static final Logger logger = Logger.getLogger(AbbreviationsResource.class);%0A%0A%09public AbbreviationsResource() %7B%0A%09%09super();%0A%09%7D%0A%09%0A%09@GET%0A%09@Produces(%7B MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML %7D)%0A%09public Response getAbbreviations() %7B%0A%0A%09%09String url = UrlHelper.join(%22abbreviations%22);%0A%09%09logger.info(%22Service: %22 + url);%0A%09%09%0A%09%09DataBookAbbreviations dataAbbreviations = AppConfiguration.instance().getDataBookAbbreviations();%0A%09%09Map%3CString, String%5B%5D%3E abbreviations = dataAbbreviations.abbreviations();%0A%09%09%0A%09%09Abbreviations resourceModel = new Abbreviations().withSize(abbreviations.size());%0A%09%09for (String book : abbreviations.keySet()) %7B%0A%09%09%09Abbreviation abb = new Abbreviation().withBook(book).withAbbreviations(abbreviations.get(book));%0A%09%09%09resourceModel.getAbbreviations().add(abb);%0A%09%09%7D%0A%09%09%0A%09%09return Response.status(200).entity(resourceModel).build();%0A%09%7D%0A%7D

Create abbreviation service.