new method checkIfResourceCanPreempt added to objectResource. The method will check weather the object currently occupying the resource can be preempted and if there is need will eventually preempt the object.