[java] Implemented import functions.