Java refactor clean communityservice

Java refactor clean communityservice