Adding a method which facilitates exporting java methods