I have this object which is an instance of a superclass. I want to know which subclass that object really is, so that I can decide what to do with it. ...
public boolean isUserControled(){ return action.getClass().getSuperclass().toString().equals("class logic.UserBehaviour"); }