The WriteableView class, at line 591 has the following:
throw new IllegalArgumentException("A " + master.getProxyType().getSimpleName() +
" with the same key \"" + keyValue + "\" already exists in " +
parent.getProxyType().getSimpleName() + " " + parent.getKey()) ;
Not only is this English text hardcoded in the file, the last part of the message "parent.getKey()" is sometimes null. For example, in GlassFish, when using the GenericCreateCommand capability, I'm seeing the following message:
remote failure: Exception while adding the new configuration : A ServiceType with the same key "mys" already exists in ServiceTypes null
A ServiceType with the same key "mys" already exists in ServiceTypes null
Command create-service-type failed.
Note the "null" at the end of the message. This is from the parent.getKey().