class HrefLinkMapper {

    public Map<String, HrefType> mapToLinksMap(Links links) {
        if (links == null) {
            return null;
        }

        return xs2aObjectMapper.convertValue(links, new TypeReference<Map<String, HrefType>>() {
        });
    }

}