class GeneralTopologyObjectMapper {

    public GenericResourceApiVnfinformationVnfInformation buildVnfInformation(GenericVnf vnf,
            ServiceInstance serviceInstance, boolean includeModelInformation) {
        GenericResourceApiVnfinformationVnfInformation vnfInformation =
                new GenericResourceApiVnfinformationVnfInformation();
        if (includeModelInformation && vnf.getModelInfoGenericVnf() != null) {
            GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation =
                    new GenericResourceApiOnapmodelinformationOnapModelInformation();
            onapModelInformation.setModelInvariantUuid(vnf.getModelInfoGenericVnf().getModelInvariantUuid());
            onapModelInformation.setModelName(vnf.getModelInfoGenericVnf().getModelName());
            onapModelInformation.setModelVersion(vnf.getModelInfoGenericVnf().getModelVersion());
            onapModelInformation.setModelUuid(vnf.getModelInfoGenericVnf().getModelUuid());
            onapModelInformation.setModelCustomizationUuid(vnf.getModelInfoGenericVnf().getModelCustomizationUuid());
            vnfInformation.setOnapModelInformation(onapModelInformation);
        }
        vnfInformation.setVnfId(vnf.getVnfId());
        vnfInformation.setVnfType(vnf.getVnfType());
        vnfInformation.setVnfName(vnf.getVnfName());
        return vnfInformation;
    }

}