class AssignNetwork {

    public boolean networkFoundByName(BuildingBlockExecution execution) {
        try {
            L3Network l3network = extractPojosForBB.extractByKey(execution, ResourceKey.NETWORK_ID);

            if (!OrchestrationStatus.PRECREATED.equals(l3network.getOrchestrationStatus())) {
                logger.debug("network found in NOT PRECREATED status");
                return true;
            }
        } catch (Exception ex) {
            return false;
        }
        return false;
    }

}