Added several utility methods to NodeAPI and EntityAPI.