class AAICreateTasks {

    public void createProject(BuildingBlockExecution execution) {
        try {
            ServiceInstance serviceInstance =
                    extractPojosForBB.extractByKey(execution, ResourceKey.SERVICE_INSTANCE_ID);
            Project project = serviceInstance.getProject();
            if (project != null) {
                if (project.getProjectName() == null || "".equals(project.getProjectName())) {
                    logger.info("ProjectName is null in input. Skipping create project...");
                } else {
                    aaiSIResources.createProjectandConnectServiceInstance(project, serviceInstance);
                }
            }
        } catch (Exception ex) {
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}