Fix coverity issues and small bug in interfaces
Change the java references are presented in lcr