added custom publisher
added junit tests
added getqueue and queueexists methods