Fix deprecation warnings

replaced include_class which is deprecated with java_import