class NamingServiceResources {

    public String generateServiceInstanceName(NamingRequestObject namingRequestObject)
            throws BadResponseException, IOException {
        HashMap<String, String> nsRequestObject = namingRequestObject.getNamingRequestObjectMap();
        Element element = new Element();
        nsRequestObject.forEach(element::put);
        List<Element> elements = new ArrayList<>();
        elements.add(element);
        return (namingClient.postNameGenRequest(namingRequestObjectBuilder.nameGenRequestMapper(elements)));
    }

}