more review comments
Created proper Java API to access IndexMetadata