Created endpoint java class