rhbz978072 add javadoc for command hooks and related methods