Added a geonode_type property in resourcebase and refactored some code.