Implement changeResourceBy method
Merge remote-tracking branch 'origin/res' into console
Add test pirate deserialization