Fixed pmd violations in Model, Factory and MapChangeListener.