[java] Implementing import functions.