class BBInputSetup implements JavaDelegate {

    protected void mapProject(List<AAIResultWrapper> projects, ServiceInstance serviceInstance) {
        if (!projects.isEmpty()) {
            AAIResultWrapper projectWrapper = projects.get(0);
            Optional<org.onap.aai.domain.yang.Project> aaiProjectOp =
                    projectWrapper.asBean(org.onap.aai.domain.yang.Project.class);
            if (aaiProjectOp.isPresent()) {
                Project project = this.mapperLayer.mapAAIProject(aaiProjectOp.get());
                serviceInstance.setProject(project);
            }
        }
    }

}