Implementation of a minimal service (in java) that responds to clients