Updated SearchElementDefinition.getElement() to use setters rather than field with reflection
fields are automatically added to element from detection in template