Does anyone knows what libraries would I need to include in Sample3.java to be able to load report with metadata.

Right now I am getting an error:
Exception in thread "main" java.lang.NullPointerException: Key data must not be null.

Thank you