# File lib/ant_task.rb, line 52
    def create_unknown_element(project, taskname)
      
      element = ApacheAnt::UnknownElement.new(taskname)
      element.setProject(project)
      element.setOwningTarget(ApacheAnt::Target.new())
      element.setTaskName(taskname)
      
      #DNR. This initializes the Task's Wrapper object and prevents NullPointerExeption upon execution of the task
      element.getRuntimeConfigurableWrapper()
      
      if(@project_wrapper.ant_version >= 1.6)
        element.setTaskType(taskname)
        element.setNamespace('')
        element.setQName(taskname)
      end
      
      return element
      
    end