does not seem to work, wrong type or no java corresponding java class