class NamingServiceResources {

    public String deleteServiceInstanceName(NamingRequestObject namingRequestObject)
            throws BadResponseException, IOException {
        HashMap<String, String> nsRequestObject = namingRequestObject.getNamingRequestObjectMap();
        Deleteelement delElement = new Deleteelement();
        nsRequestObject.forEach((k, v) -> delElement.setExternalKey(v));
        List<Deleteelement> delElements = new ArrayList<>();
        delElements.add(delElement);
        return (namingClient.deleteNameGenRequest(namingRequestObjectBuilder.nameGenDeleteRequestMapper(delElements)));
    }

}