Here are some tips for debugging and optimising the Confluence plugin development proccess.