Update ConfluencePublisher.java

decreased variable scope