class BBInputSetup implements JavaDelegate {

    protected void mapLineOfBusiness(List<AAIResultWrapper> lineOfBusinesses, GenericVnf genericVnf) {
        if (!lineOfBusinesses.isEmpty()) {
            AAIResultWrapper lineOfBusinessWrapper = lineOfBusinesses.get(0);
            Optional<org.onap.aai.domain.yang.LineOfBusiness> aaiLineOfBusinessOp =
                    lineOfBusinessWrapper.asBean(org.onap.aai.domain.yang.LineOfBusiness.class);
            if (aaiLineOfBusinessOp.isPresent()) {
                LineOfBusiness lineOfBusiness = this.mapperLayer.mapAAILineOfBusiness(aaiLineOfBusinessOp.get());
                genericVnf.setLineOfBusiness(lineOfBusiness);
            }
        }
    }

}