Instead of trying to duplicate the actions in Java, it might be easier if you create a small php-script, using the datamanagers to insert the new forum, and call this php-script from your Java application.
PS Yes more tables are involved beside the 'forum' table.