Merge "Get anomalyType and autoRestriction from config" into pi-dev