[FrameworkBundle][Security] Replaced void return type with null for consistency