class BBInputSetup implements JavaDelegate {

    protected void mapCollection(List<AAIResultWrapper> collections, ServiceInstance serviceInstance) {
        if (!collections.isEmpty()) {
            AAIResultWrapper collectionWrapper = collections.get(0);
            Optional<org.onap.aai.domain.yang.Collection> aaiCollectionOp =
                    collectionWrapper.asBean(org.onap.aai.domain.yang.Collection.class);
            aaiCollectionOp.ifPresent(
                    collection -> serviceInstanceSetCollection(serviceInstance, collectionWrapper, collection));
        }
    }

}