getEntityId(Object instance) method added.
required and requiredMsg added to selectOneMenu