added support for tags in java sdk - no refactoring for now