Cleaned java function call to it's own class.