JUDDI-788 updated the simple publish examples, removing an extra code, adding null checks

git-svn-id: https://svn.apache.org/repos/asf/juddi/trunk@1558356 13f79535-47bb-0310-9956-ffa450edef68