@Override
  protected void doParse(Element element, BeanDefinitionBuilder builder) {

    // configure MockFactory
    builder.addConstructorArgValue(element.getAttribute("class"));
    builder.addPropertyValue("name", element.getAttribute("id"));
    builder.addPropertyValue("mockNature", element.getLocalName());
  }
Adds support for the spock:mock element.

Spring integration of spock mocks is heavily inspired by
Springokito {@see https://bitbucket.org/kubek2k/springockito}.

@author Leonard Bruenings
spock-spring/src/main/java/org/spockframework/spring/xml/MockBeanDefinitionParser.java