Refactor Java API callback method name