Java6 compatible introducing an enum for response type