final Map<String,AMXProxy> childrenOfType = existingChildren.get(type);
if ( childrenOfType != null )
{
// children of this type exist, check that there is no conflicting child already
final AMXProxy firstChild = childrenOfType.values().iterator().next();
if ( firstChild.extra().singleton() )
{
throw new IllegalArgumentException( "Singleton child of type " + type + " already exists." );
}
if ( childrenOfType.get( params.name() ) != null)
{