new metadata extractor class and usage in pig script
auxiliary class for stacktrace logging