Initialize presenter.
Define ResourceDuplicatedDefinedError.
Fix import error.
Use ResourceDuplicatedDefinedError in API.