LPS-32801 - Refactor ATag.java code

Hey Shinn,

Can you review this before we send it to Nate for final review?  I want to make sure I didn't miss anything source formatting wise.  If it passes, can you submit a pull to Nate?  This issue can be found at http://issues.liferay.com/browse/LPS-32801.

Please let me know if you have any questions.

Thanks!

- Jon Mak