You should be able to use the FeedbackHelper class that does this for you. From the javadoc:
/**
* Add refresh class object feedback to this action
* @deprecated use class FeedbackHelper instead with similar method name, but starting with IContext param
* @param objectClass the name of the class to refresh
*/
I see that the apidocs are not properly generated, will ask someone to take a look at the build process.