Repository hooks API does not appear to properly configure the code required. The exmple code won't run due to missing libraries. I have looked online and the documentation appears to be all over the place.
The path is set to
import com.atlassian.bitbucket.repository.hook.*;
yet when I go to the online dock's it points to
import com.atlassian.bitbucket.hook.*;
The project builds before the module hook is added.