getJavaSource - call myJavaSource on a program [might be null if program doesn't have the function]