private BPElement _createElement(String uri, String localName) {

    BPNamespace pkg = this.mEnvironment.getNamespaceRegistrar().getNamespace(uri);

    if (pkg == null) {
      System.err.println("No namespace!");
      System.err.println("    namespaceURI:" + uri);
      System.err.println("       loaclName:" + localName);
      return null;
    }
    BPType bpcls = pkg.getType(localName);
    if (bpcls == null) {
      System.err.println("No class!");
      System.err.println("    namespaceURI:" + uri);
      System.err.println("       loaclName:" + localName);
      return null;
    }
    Class<?> cls = bpcls.getControllerClass();
    try {
      BPElement node = (BPElement) cls.newInstance();
      node.bindType(bpcls);
      node.bindOwnerDocument(this);
      return node;
    } catch (Exception e) {
      e.printStackTrace();
      return null;
    }
  }
 @Override
 public Object findTargetByURI(String uri) {
   BPElement ele = this.findElementByURI(uri);
   if (ele == null) {
     return null;
   } else {
     return ele.getTarget(true);
   }
 }