class AAIVnfResources {

    public boolean checkInMaintFlag(String vnfId) {
        org.onap.aai.domain.yang.GenericVnf vnf = injectionHelper.getAaiClient()
                .get(org.onap.aai.domain.yang.GenericVnf.class,
                        AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf(vnfId)))
                .orElse(new org.onap.aai.domain.yang.GenericVnf());
        return vnf.isInMaint();
    }

}