src/main/java/org/robotframework/remoteserver/xmlrpc/ReflectiveHandlerMapping.java
@SuppressWarnings("unchecked")
    public void removePrefixes() {
	Map<String, Object> newHandlerMap = new HashMap<String, Object>();
	for (Entry<String, Object> entry : (Set<Entry<String, Object>>) this.handlerMap.entrySet()) {
	    String newKey = (String) entry.getKey();
	    if (entry.getKey() instanceof String) {
		String key = (String) entry.getKey();
		if (key.contains(".")) {
		    newKey = key.substring(key.lastIndexOf(".") + 1);
		}
	    }
	    newHandlerMap.put(newKey, entry.getValue());
	}
	this.handlerMap = newHandlerMap;
    }
@SuppressWarnings("unchecked")
    public void removePrefixes() {
	Map<String, Object> newHandlerMap = new HashMap<String, Object>();
	for (Entry<String, Object> entry : (Set<Entry<String, Object>>) this.handlerMap.entrySet()) {
	    String newKey = (String) entry.getKey();
	    if (entry.getKey() instanceof String) {
		String key = (String) entry.getKey();
		if (key.contains(".")) {
		    newKey = key.substring(key.lastIndexOf(".") + 1);
		}
	    }
	    newHandlerMap.put(newKey, entry.getValue());
	}
	this.handlerMap = newHandlerMap;
    }
@ SuppressWarnings ( "unchecked" ) public void removePrefixes ( ) { Map < String , Object > newHandlerMap = new HashMap < String , Object > ( ) ; for ( Entry < String , Object > entry : ( Set < Entry < String , Object > > ) this . handlerMap . entrySet ( ) ) { String newKey = ( String ) entry . getKey ( ) ; if ( entry . getKey ( ) instanceof String ) { String key = ( String ) entry . getKey ( ) ; if ( key . contains ( "." ) ) { newKey = key . substring ( key . lastIndexOf ( "." ) + 1 ) ; } } newHandlerMap . put ( newKey , entry . getValue ( ) ) ; } this . handlerMap = newHandlerMap ; }
Removes the prefixes from all keys in this handler mapping assuming a String was used as the key and period was
used as a separator. Example: AccountsReceivable.Billing.getInvoice -> getInvoice
Removes the prefixes from all keys in this handler mapping assuming a String was used as the key and period was used as a separator . Example : AccountsReceivable . Billing . getInvoice - > getInvoice