added getType method on module entity and child classes