[ADAM-339] Fixed MD tag creation failure when MD tag = 0.
Merge pull request #352 from fnothaft/fix-failing-mdtag

Fix failing MD tag
[ADAM-357] Added Java Plugin hook for ADAM.