code: public synchronized void nameObject(String namePrefix, INameable object)
      {
          String name = namePrefix + Integer.toString(_nextValue++);
          object.setObjectName(name);
      }
docs: This method will create a unique name for an INameable object.  The name
  will be unque within the session.  This will throw an IllegalStateException
  if INameable.setObjectName has previously been called on object.
  @param namePrefix The prefix of the generated name.
  @param object the INameable object.
  @throws IllegalStateException if this method is called more than once for an object