class BBInputSetup implements JavaDelegate {

    protected GenericVnf createGenericVnf(Map<ResourceKey, String> lookupKeyMap, String instanceName,
            org.onap.so.serviceinstancebeans.Platform platform,
            org.onap.so.serviceinstancebeans.LineOfBusiness lineOfBusiness, String vnfId, String vnfType,
            List<Map<String, String>> instanceParams, String productFamilyId, String applicationId) {
        lookupKeyMap.put(ResourceKey.GENERIC_VNF_ID, vnfId);
        GenericVnf genericVnf = new GenericVnf();
        genericVnf.setVnfId(vnfId);
        genericVnf.setVnfName(instanceName);
        genericVnf.setOrchestrationStatus(OrchestrationStatus.PRECREATED);
        genericVnf.setVnfType(vnfType);
        genericVnf.setProvStatus(PREPROV);
        genericVnf.setServiceId(productFamilyId);
        genericVnf.setApplicationId(applicationId);
        if (platform != null) {
            genericVnf.setPlatform(this.mapperLayer.mapRequestPlatform(platform));
        }
        if (lineOfBusiness != null) {
            genericVnf.setLineOfBusiness(this.mapperLayer.mapRequestLineOfBusiness(lineOfBusiness));
        }
        if (instanceParams != null) {
            for (Map<String, String> params : instanceParams) {
                genericVnf.getCloudParams().putAll(params);
            }
        }
        return genericVnf;
    }

}