class AAICreateResources extends AAIResource {

    public Optional<GenericVnf> getVnfInstance(String vnfId) {
        try {
            AAIResourceUri vnfURI = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf(vnfId));
            AAIResultWrapper aaiResponse = getAaiClient().get(vnfURI);
            Optional<GenericVnf> vnf = aaiResponse.asBean(GenericVnf.class);
            return vnf;
        } catch (Exception ex) {
            logger.error("Exception in getVnfInstance", ex);
            return Optional.empty();
        }
    }

}