How to call javascript in java plugin file?

I have a java plugin this file and I want to access javascript to return some value