Allow java producer push to change topics

If no message is passed to push method, then topic from initialization is used
If a topic is passed to push method, then that topic is used
added this in case its useful for the C-based changes