changed maven java version to 6 and removed overridden method