added the java-part again.