class AAIVnfResources {

    public boolean checkVnfPserversLockedFlag(String vnfId) throws IOException {
        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());
        AAIRestClientImpl client = new AAIRestClientImpl();
        aaiValidatorImpl.setClient(client);
        return aaiValidatorImpl.isPhysicalServerLocked(vnf.getVnfId());

    }

}