- conversion using eclises "paste as scala(from java)" and some manual changes