This is a wrapper for java.