added EventSource for java and sample projects
Merge pull request #1282 from nraychaudhuri/java_eventsource

added EventSource for Java and sample projects