Included the whole tagging and regex logic in java now