Implementing Endpoint interface in java
added license