mongoSample for java