Connection on PendingToApprove.java,PendingToPublish.java fix