Removed hardcoded bean names and updated reflection API references.