initial check in of the Java implementations.