This will break with the new one sub pool work where getSourceEntitlement WILL be null but the sourceStackId will not be. So we need to check for both types of sub pools.