Generic type in Callback must extend AbstractCallback.