name = name.substring(0, name.indexOf("("));
name = name.substring(0, ((name.indexOf("(") == -1) ? name.length() : name.indexOf("(")));
  private String getName(Property prop) {    String name = prop.getName().toString();    int index = name.lastIndexOf('.');    if (index != -1)      name = name.substring(index+1);    name = name.substring(0, name.indexOf("("));    return name.trim();  }