The Java Server code for mShare