Implemented _resolveElement method.