drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/ElementEditor.java
public static String getNSLocalName(String name) {
        Assert.isNotNull(name);
        int p = name.lastIndexOf(':');
        if (p == -1)
            return name;
        if (p == name.length() - 1)
            return null;
        return name.substring(p + 1);
    }
public static String getNSLocalName(String name) {
        Assert.isNotNull(name);
        int p = name.lastIndexOf(':');
        if (p == -1)
            return name;
        if (p == name.length() - 1)
            return null;
        return name.substring(p + 1);
    }
public static String getNSLocalName ( String name ) { Assert . isNotNull ( name ) ; int p = name . lastIndexOf ( ' ' ) ; if ( p == - 1 ) return name ; if ( p == name . length ( ) - 1 ) return null ; return name . substring ( p + 1 ) ; }
Returns the local part of the given name, or <code>null</code> if its
name has no local part. The name must not be <code>null</code>.
<table>
<caption>Example</caption>
<tr>
<th>name</th>
<th>local name</th>
<tr>
<td>D:foo</td>
<td>foo</td>
<tr>
<td>foo</td>
<td>foo</td>
<tr>
<td>D:</td>
<td>null</td>
<tr>
<td>:foo</td>
<td>foo</td>
<tr>
<td>:</td>
<td>null</td>
</table>

@param name the name whose local part is returned
@return     the name's local part, or <code>null</code>
Returns the local part of the given name or <code > null< / code > if its name has no local part . The name must not be <code > null< / code > . <table > <caption > Example< / caption > <tr > <th > name< / th > <th > local name< / th > <tr > <td > D : foo< / td > <td > foo< / td > <tr > <td > foo< / td > <td > foo< / td > <tr > <td > D : < / td > <td > null< / td > <tr > <td > : foo< / td > <td > foo< / td > <tr > <td > : < / td > <td > null< / td > < / table >