code: private boolean isTypeAttributeWithPrefix(final Attr attribute) {
          return TYPE_ATTRIBUTE_NAME.equals(attribute.getName()) && attribute.getValue().startsWith(oldPrefix + ":");
      }
docs: Discovers if the provided attribute is a type attribute using the oldPrefix namespace, on the form
  <code>&lt;xs:element type="oldPrefix:anElementInTheOldPrefixNamespace"/&gt;</code>
  
  @param attribute the attribute to test.
  @return <code>true</code> if the provided attribute is named "type" and starts with <code>[oldPrefix]:</code>, in
  which case it is a type in the oldPrefix namespace.