class NamingServiceResources {

    public String generateInstanceGroupName(InstanceGroup instanceGroup, String policyInstanceName, String nfNamingCode)
            throws BadResponseException, IOException {
        Element element = namingRequestObjectBuilder.elementMapper(instanceGroup.getId(), policyInstanceName,
                NAMING_TYPE, nfNamingCode, instanceGroup.getInstanceGroupName());
        List<Element> elements = new ArrayList<>();
        elements.add(element);
        return (namingClient.postNameGenRequest(namingRequestObjectBuilder.nameGenRequestMapper(elements)));
    }

}