Added example Java externals code