private Java9Module checkJavaModule(JavaModule targetJavaModule) {
        Objects.requireNonNull(targetJavaModule, "targetJavaModule");

        if (targetJavaModule instanceof Java9Module) {
            return (Java9Module) targetJavaModule;
        }
        throw new ModuleException("invalid JavaModule: " + targetJavaModule.getClass());
    }
@author Woonduk Kang(emeroad)
@author jaehong.kim - Add addProvides()
agent-module/bootstraps/bootstrap-java9/src/main/java/com/navercorp/pinpoint/bootstrap/java9/module/Java9Module.java