added server java class