[java] preliminary SPOD implementation